2
# Updates all packages on the server, but stops the widelands website before
3
# doing so, in case mysql gets updated - it always results in really ugly
4
# errors for users otherwise. Ideally, this script would switch the website to
5
# a "In Maintenance" banner.
7
# This script requires root access.
11
if [ -z "$STY" ] && [ -z "$TMUX" ]; then
12
echo "Run inside screen or tmux in case SSH gets updated."
17
stop wlwebsite || true
19
# TODO(sirver): Upgrading widelands-data takes a long time (~30 minutes or
20
# longer). Use apt-mark hold to not update widelands and widelands-data to
21
# bring the website up quicker again. Then only upgrade those packages later,
22
# after the website is up again.
23
# See http://askubuntu.com/questions/99774/exclude-packages-from-apt-get-upgrade