Skip to content

Commit b63e5e5

Browse files
authored
tidy up and be more verbose
1 parent 30b2c3e commit b63e5e5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

nextcloud_update.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ if [ -d "$BACKUP" ]
450450
then
451451
mkdir -p "$BACKUP"-OLD/"$DATE"
452452
install_if_not rsync
453-
rsync -Aaxz --progress "$BACKUP"/ "$BACKUP"-OLD/"$DATE"
453+
rsync -Aaxz "$BACKUP"/ "$BACKUP"-OLD/"$DATE"
454454
rm -R "$BACKUP"
455455
mkdir -p "$BACKUP"
456456
fi
@@ -510,13 +510,15 @@ if [ -d $BACKUP/apps/ ]
510510
then
511511
print_text_in_color "$ICyan" "$BACKUP/apps/ exists"
512512
echo
513-
printf "${IGreen}All files are backed up.${Color_Off}\n"
513+
print_text_in_color "$IGreen" "All files are backed up."
514514
occ_command maintenance:mode --on
515515
countdown "Removing old Nextcloud instance in 5 seconds..." "5"
516516
rm -rf $NCPATH
517+
print_text_in_color "$ICyan" "Extracting new package...."
517518
tar -xjf "$HTML/$STABLEVERSION.tar.bz2" -C "$HTML"
518519
rm "$HTML/$STABLEVERSION.tar.bz2"
519-
cp -R $BACKUP/config "$NCPATH"/
520+
print_text_in_color "$ICyan" "Restoring config to Nextcloud..."
521+
rsync -Aaxz $BACKUP/config "$NCPATH"/
520522
bash $SECURE & spinner_loading
521523
occ_command maintenance:mode --off
522524
occ_command upgrade

0 commit comments

Comments
 (0)