mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-05-16 00:30:25 +00:00
Alpine-Rclone: Fix location of passwords file (#4465)
* Fix install and update * Update
This commit is contained in:
parent
4762ea8fae
commit
180e003978
@ -28,7 +28,6 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then
|
if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "info",
|
"type": "info",
|
||||||
"text": "`htpasswd -b -B /opt/rclone/login.pwd newuser newuserpassword` to add more users."
|
"text": "`htpasswd -b -B /opt/login.pwd newuser newuserpassword` to add more users."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclon
|
|||||||
$STD unzip -j "$temp_file" '*/**' -d /opt/rclone
|
$STD unzip -j "$temp_file" '*/**' -d /opt/rclone
|
||||||
cd /opt/rclone
|
cd /opt/rclone
|
||||||
RCLONE_PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16)
|
RCLONE_PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16)
|
||||||
$STD htpasswd -cb -B login.pwd admin "$RCLONE_PASSWORD"
|
$STD htpasswd -cb -B /opt/login.pwd admin "$RCLONE_PASSWORD"
|
||||||
{
|
{
|
||||||
echo "rclone-Credentials"
|
echo "rclone-Credentials"
|
||||||
echo "rclone User Name: admin"
|
echo "rclone User Name: admin"
|
||||||
@ -42,7 +42,7 @@ cat <<EOF >/etc/init.d/rclone
|
|||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
description="rclone Service"
|
description="rclone Service"
|
||||||
command="/opt/rclone/rclone"
|
command="/opt/rclone/rclone"
|
||||||
command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/rclone/login.pwd"
|
command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/login.pwd"
|
||||||
command_background="true"
|
command_background="true"
|
||||||
command_user="root"
|
command_user="root"
|
||||||
pidfile="/var/run/rclone.pid"
|
pidfile="/var/run/rclone.pid"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user