diff options
Diffstat (limited to 'scripts/update.sh')
-rw-r--r-- | scripts/update.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/update.sh b/scripts/update.sh index d0598135..4911d7c4 100644 --- a/scripts/update.sh +++ b/scripts/update.sh | |||
@@ -2,6 +2,12 @@ | |||
2 | # You can execute this file to update wallabag | 2 | # You can execute this file to update wallabag |
3 | # eg: `sh update.sh prod` | 3 | # eg: `sh update.sh prod` |
4 | 4 | ||
5 | # Abort running this script if root | ||
6 | if [ "$EUID" == "0" ]; then | ||
7 | echo "Do not run this script as root!" >&2 | ||
8 | exit 1 | ||
9 | fi | ||
10 | |||
5 | set -e | 11 | set -e |
6 | set -u | 12 | set -u |
7 | 13 | ||