Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/automatic_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mkdir -p "$VMLOGS"/updates
crontab -u root -l | { cat; echo "0 $AUT_UPDATES_TIME * 1-12 6 $SCRIPTS/update.sh minor >> $VMLOGS/updates/update-\$(date +\%Y-\%m-\%d_\%H:\%M).log 2>&1"; } | crontab -u root -
if yesno_box_yes "Do you want to reboot your server after every update? *recommended*"
then
sed -i "s|exit|/sbin/shutdown -r +10|g" "$SCRIPTS"/update.sh
sed -i '$ s|^exit$|/sbin/shutdown -r +10|' "$SCRIPTS"/update.sh
echo "exit" >> "$SCRIPTS"/update.sh
fi

Expand Down
2 changes: 1 addition & 1 deletion menu/main_menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ To upgrade to the latest version, please run: 'sudo bash $SCRIPTS/update.sh' fro
download_script STATIC update
if [ -n "$REBOOT_SET" ]
then
sed -i "s|exit|/sbin/shutdown -r +10|g" "$SCRIPTS"/update.sh
sed -i '$ s|^exit$|/sbin/shutdown -r +10|' "$SCRIPTS"/update.sh
fi
do_the_update
else
Expand Down
2 changes: 1 addition & 1 deletion nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ chmod +x "$SCRIPTS"/update.sh
# Restore reboot if it was enabled
if [ "$REBOOT_ENABLED" = 1 ]
then
sed -i "s|exit|/sbin/shutdown -r +10|g" "$SCRIPTS"/update.sh
sed -i '$ s|^exit$|/sbin/shutdown -r +10|' "$SCRIPTS"/update.sh
echo "exit" >> "$SCRIPTS"/update.sh
fi

Expand Down
Loading