aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh6
-rw-r--r--scripts/update.sh6
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 62a46f4f..7d3311b0 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -2,6 +2,12 @@
2# You can execute this file to install wallabag 2# You can execute this file to install wallabag
3# eg: `sh install.sh prod` 3# eg: `sh install.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
5COMPOSER_COMMAND='composer' 11COMPOSER_COMMAND='composer'
6 12
7DIR="${BASH_SOURCE}" 13DIR="${BASH_SOURCE}"
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