Add Nextcloud Maintenance Scritp to Sovran_SystemsOS_Updater

This commit is contained in:
naturallaw77 2024-07-31 16:06:49 -07:00
parent e699b8c37c
commit 21057f982b

View File

@ -33,6 +33,36 @@ popd
} }
PASTA () {
time_stamp=$(date +%Y-%m-%d-%T)
ssh root@localhost "sudo -u caddy php /var/lib/www/nextcloud/occ maintenance:repair && sudo -u caddy php /var/lib/www/nextcloud/occ db:add-missing-indices &> /home/free/Documents/Updater_App_Logs/{$time_stamp}-Updater_Nextcloud_Maintenance_Log.txt"
}
PASTA_SAUCE () {
pushd /home/free/Documents/Updater_App_Logs
file=$(ls -Art | tail -n 1)
if grep -w "nix: error" $file ; then
zenity --error \
--width=1300 \
--title="Sovran_SystemsOS_Updater" \
--text="Could not complete the Nextcloud Maintenance. Check the Updater_Nextcloud_Maintenance_Log.txt in your Documents under Updater_App_Logs folder for more details."
exit 1
fi
popd
}
FLAKE () { FLAKE () {
time_stamp=$(date +%Y-%m-%d-%T) time_stamp=$(date +%Y-%m-%d-%T)
@ -141,6 +171,10 @@ else
HUNGRY HUNGRY
PASTA | zenity --progress --no-cancel --auto-close --width=500 --pulsate --text="Nextcloud Maintenance..." --title="Sovran_SystemsOS_Updater"
PASTA_SAUCE
FLAKE | zenity --progress --no-cancel --auto-close --width=500 --pulsate --text="Updating Flake now..." --title="Sovran_SystemsOS_Updater" FLAKE | zenity --progress --no-cancel --auto-close --width=500 --pulsate --text="Updating Flake now..." --title="Sovran_SystemsOS_Updater"
PANCAKE-FLAKE PANCAKE-FLAKE