Skip to content

Commit

Permalink
add redirect to react router
Browse files Browse the repository at this point in the history
  • Loading branch information
firsttris committed Dec 9, 2023
1 parent 3f10e3f commit c3e9720
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies
run: npm ci
Expand All @@ -31,10 +31,10 @@ jobs:

- name: Get version
id: packagejson
uses: martinbeentjes/npm-get-version-action@v1.1.0
uses: martinbeentjes/npm-get-version-action@v1.3.1

- name: Upload Release
uses: ncipollo/release-action@v1.12.0
uses: ncipollo/release-action@v1.13.0
with:
artifacts: 'mui-${{ steps.packagejson.outputs.current-version }}.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions addon_installer/lighttpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$HTTP["url"] =~ "^/addons/mui/(.*)" {
url.redirect = ("^/(.*)" => "/addons/mui/$1")
}
4 changes: 3 additions & 1 deletion addon_installer/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ if [ $? -eq 1 ]; then
fi

mkdir -p $ADDON_DIR && chmod -R 755 $ADDON_DIR

cp -af dist/* $ADDON_DIR

ln -sf $ADDON_DIR $WWW_DIR

mkdir -p $RC_DIR && chmod -R 755 $RC_DIR
cp -af rc.d/mui $RC_DIR

cp -af lighttpd.conf /usr/local/etc/lighttpd/mui.conf

sync

exit 0

0 comments on commit c3e9720

Please sign in to comment.