mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-22 23:56:29 +00:00
Abort running install and update script if root (closes #3590)
This commit is contained in:
parent
0f5c15d543
commit
23aa47d828
2 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
||||||
# You can execute this file to install wallabag
|
# You can execute this file to install wallabag
|
||||||
# eg: `sh install.sh prod`
|
# eg: `sh install.sh prod`
|
||||||
|
|
||||||
|
# Abort running this script if root
|
||||||
|
if [ "$EUID" == "0" ]; then
|
||||||
|
echo "Do not run this script as root!" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
COMPOSER_COMMAND='composer'
|
COMPOSER_COMMAND='composer'
|
||||||
|
|
||||||
DIR="${BASH_SOURCE}"
|
DIR="${BASH_SOURCE}"
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
# You can execute this file to update wallabag
|
# You can execute this file to update wallabag
|
||||||
# eg: `sh update.sh prod`
|
# eg: `sh update.sh prod`
|
||||||
|
|
||||||
|
# Abort running this script if root
|
||||||
|
if [ "$EUID" == "0" ]; then
|
||||||
|
echo "Do not run this script as root!" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue