fix syntax
This commit is contained in:
parent
a2d65f9c61
commit
582df940da
1 changed files with 3 additions and 3 deletions
4
debian/postrm
vendored
4
debian/postrm
vendored
|
@ -19,7 +19,7 @@ gitlab_debian_defaults=/var/lib/gitlab/gitlab-debian.defaults
|
||||||
|
|
||||||
# Read debian specific configuration
|
# Read debian specific configuration
|
||||||
if [ -f ${gitlab_debian_conf} ]; then . ${gitlab_debian_conf}; fi
|
if [ -f ${gitlab_debian_conf} ]; then . ${gitlab_debian_conf}; fi
|
||||||
if [ -f ${gitlab_debian_defaults}; then . ${gitlab_debian_defaults}; fi
|
if [ -f ${gitlab_debian_defaults} ]; then . ${gitlab_debian_defaults}; fi
|
||||||
|
|
||||||
safely_remove() {
|
safely_remove() {
|
||||||
CANDIDATE_DIR=$1
|
CANDIDATE_DIR=$1
|
||||||
|
@ -76,7 +76,7 @@ ${gitlab_data_dir}; do
|
||||||
echo "dropdb command not found. Hence not removing database."
|
echo "dropdb command not found. Hence not removing database."
|
||||||
fi
|
fi
|
||||||
echo "Removing user: ${gitlab_user}"
|
echo "Removing user: ${gitlab_user}"
|
||||||
if [ id -u ${gitlab_user} ]; then userdel -r ${gitlab_user}; fi
|
if id -u ${gitlab_user}; then userdel -r ${gitlab_user}; fi
|
||||||
else
|
else
|
||||||
echo "gitlab_user not set. Hence not removing user."
|
echo "gitlab_user not set. Hence not removing user."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue