Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wy580477 committed Jul 3, 2022
1 parent 5cdd50f commit 0e67952
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN apk add --no-cache curl caddy jq runit tzdata fuse p7zip bash findutils \
&& pipx install --pip-args='--no-cache-dir' gallery-dl \
&& apk del .build-deps \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.2.4/AriaNg-1.2.4.zip | busybox unzip -qd /workdir/ariang - \
&& sed -i 's|6800|443|g' /workdir/ariang/js/aria-ng-a87a79b0e7.min.js \
&& wget -O - https://github.com/rclone/rclone-webui-react/releases/download/v2.0.5/currentbuild.zip | busybox unzip -qd /workdir/rcloneweb - \
&& wget -O - https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip | busybox unzip -qd /workdir/homer - \
&& wget -O - https://github.com/WDaan/VueTorrent/releases/latest/download/vuetorrent.zip | busybox unzip -qd /workdir - \
Expand Down
1 change: 0 additions & 1 deletion Dockerfile.lite
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ RUN apk add --no-cache curl caddy jq runit tzdata fuse bash findutils \
&& python3 -m pip install --user --no-cache-dir pipx \
&& pipx install --pip-args='--no-cache-dir' gallery-dl \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.2.4/AriaNg-1.2.4.zip | busybox unzip -qd /workdir/ariang - \
&& sed -i 's|6800|443|g' /workdir/ariang/js/aria-ng-a87a79b0e7.min.js \
&& wget -O - https://github.com/rclone/rclone-webui-react/releases/download/v2.0.5/currentbuild.zip | busybox unzip -qd /workdir/rcloneweb - \
&& wget -O - https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip | busybox unzip -qd /workdir/homer - \
&& wget -O - https://github.com/WDaan/VueTorrent/releases/latest/download/vuetorrent.zip | busybox unzip -qd /workdir - \
Expand Down
4 changes: 3 additions & 1 deletion content/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

set -x

DIR_TMP="$(mktemp -d)"

OS_type="$(uname -m)"
Expand All @@ -14,7 +16,7 @@ case "$OS_type" in
OS_type='arm64'
OS_type2='aarch64'
OS_type3='arm64'
OS_type3='arm64'
OS_type4='arm64'
;;
arm*)
OS_type='arm-v7'
Expand Down
3 changes: 2 additions & 1 deletion content/service/caddy/run
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/sh

# Configure AriaNG & Rclone WebUI
sed -i 's|6800|'"${CADDY_WEB_PORT}"'|g' /workdir/ariang/js/aria-ng-a87a79b0e7.min.js
sed -i 's|rpcInterface:"jsonrpc"|rpcInterface:"'"${GLOBAL_PORTAL_PATH/\//}"'/jsonrpc"|g' /workdir/ariang/js/aria-ng-a87a79b0e7.min.js
sed -i 's|ipAddress:a|ipAddress:`${window.location.protocol}//${window.location.hostname}'"${GLOBAL_PORTAL_PATH}"'/rclonerc`|g' /workdir/rcloneweb/build/static/js/3.90421092.chunk.js
sed -i 's|ipAddress:a|ipAddress:`${window.location.protocol}//${window.location.hostname}:'"${CADDY_WEB_PORT}"''"${GLOBAL_PORTAL_PATH}"'/rclonerc`|g' /workdir/rcloneweb/build/static/js/3.90421092.chunk.js

# Configure homer
cp /workdir/homer_conf/* /workdir/homer/assets/tools/
Expand Down

0 comments on commit 0e67952

Please sign in to comment.