Skip to content

Commit 180e003

Browse files
authored
Alpine-Rclone: Fix location of passwords file (#4465)
* Fix install and update * Update
1 parent 4762ea8 commit 180e003

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ct/alpine-rclone.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit 1
3030
fi
31-
3231
RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3332
if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then
3433
msg_info "Updating ${APP} LXC"

frontend/public/json/alpine-rclone.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"type": "info",
52-
"text": "`htpasswd -b -B /opt/rclone/login.pwd newuser newuserpassword` to add more users."
52+
"text": "`htpasswd -b -B /opt/login.pwd newuser newuserpassword` to add more users."
5353
}
5454
]
5555
}

install/alpine-rclone-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclon
2727
$STD unzip -j "$temp_file" '*/**' -d /opt/rclone
2828
cd /opt/rclone
2929
RCLONE_PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16)
30-
$STD htpasswd -cb -B login.pwd admin "$RCLONE_PASSWORD"
30+
$STD htpasswd -cb -B /opt/login.pwd admin "$RCLONE_PASSWORD"
3131
{
3232
echo "rclone-Credentials"
3333
echo "rclone User Name: admin"
@@ -42,7 +42,7 @@ cat <<EOF >/etc/init.d/rclone
4242
#!/sbin/openrc-run
4343
description="rclone Service"
4444
command="/opt/rclone/rclone"
45-
command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/rclone/login.pwd"
45+
command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/login.pwd"
4646
command_background="true"
4747
command_user="root"
4848
pidfile="/var/run/rclone.pid"

0 commit comments

Comments
 (0)