aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update.sh
diff options
context:
space:
mode:
authorJérôme Deuchnord <jerome@deuchnord.fr>2018-10-06 12:23:40 +0200
committerJérôme Deuchnord <jerome@deuchnord.fr>2018-10-06 12:23:40 +0200
commit23aa47d8286219f01329fa46359214c8e2fbc4d4 (patch)
tree39b576451e9a0ffff37ee538bdc7fe71b70460a9 /scripts/update.sh
parent0f5c15d5434ab1ce22f250aeb56271162a6deca0 (diff)
downloadwallabag-23aa47d8286219f01329fa46359214c8e2fbc4d4.tar.gz
wallabag-23aa47d8286219f01329fa46359214c8e2fbc4d4.tar.zst
wallabag-23aa47d8286219f01329fa46359214c8e2fbc4d4.zip
Abort running install and update script if root (closes #3590)
Diffstat (limited to 'scripts/update.sh')
-rw-r--r--scripts/update.sh6
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
6if [ "$EUID" == "0" ]; then
7 echo "Do not run this script as root!" >&2
8 exit 1
9fi
10
5set -e 11set -e
6set -u 12set -u
7 13