~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to _ops/apt_update.sh

  • Committer: Holger Rapp
  • Date: 2016-08-08 10:06:42 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: sirver@gmx.de-20160808100642-z62vwqitxoyl5fh4
Added the apt-get update script I run every 30 days.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
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.
 
6
#
 
7
# This script requires root access.
 
8
 
 
9
set -ex
 
10
 
 
11
apt-get update
 
12
stop wlwebsite
 
13
 
 
14
apt-get dist-upgrade -y
 
15
 
 
16
start wlwebsite
 
17
 
 
18
apt-get autoremove -y