mirror of https://github.com/tteck/Proxmox.git
Update alpine-nextcloud.sh
This commit is contained in:
parent
141dfe53e7
commit
fd65f36a8c
|
@ -52,13 +52,19 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
|
if [[ ! -d /usr/share/webapps/nextcloud ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
if ! apk -e info newt >/dev/null 2>&1; then
|
if ! apk -e info newt >/dev/null 2>&1; then
|
||||||
apk add -q newt
|
apk add -q newt
|
||||||
fi
|
fi
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/nextcloud/server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
while true; do
|
while true; do
|
||||||
CHOICE=$(
|
CHOICE=$(
|
||||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 2 \
|
||||||
"1" "Check for Nextcloud Updates" 3>&2 2>&1 1>&3
|
"1" "Update Nextcloud to $RELEASE" ON \
|
||||||
|
"2" "Nextcloud Credentials" OFF 3>&1 1>&2 2>&3
|
||||||
)
|
)
|
||||||
exit_status=$?
|
exit_status=$?
|
||||||
if [ $exit_status == 1 ]; then
|
if [ $exit_status == 1 ]; then
|
||||||
|
@ -73,6 +79,10 @@ function update_script() {
|
||||||
su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices'
|
su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices'
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
2)
|
||||||
|
cat paperless.creds
|
||||||
|
exit
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -82,7 +92,6 @@ build_container
|
||||||
description
|
description
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
cat ~/nextcloud.creds
|
|
||||||
echo -e "\n
|
echo -e "\n
|
||||||
${APP} should be reachable by going to the following URL.
|
${APP} should be reachable by going to the following URL.
|
||||||
${BL}https://${IP}${CL} \n"
|
${BL}https://${IP}${CL} \n"
|
||||||
|
|
Loading…
Reference in New Issue