remove gitlab user only if exist
This commit is contained in:
parent
80f8263a91
commit
00cbdaf00c
1 changed files with 1 additions and 1 deletions
2
debian/postrm
vendored
2
debian/postrm
vendored
|
@ -53,7 +53,7 @@ case "$1" in
|
||||||
rm -rf ${gitlab_log_dir}
|
rm -rf ${gitlab_log_dir}
|
||||||
rm -rf ${gitlab_cache_path}
|
rm -rf ${gitlab_cache_path}
|
||||||
rm -rf ${gitlab_pid_path}
|
rm -rf ${gitlab_pid_path}
|
||||||
userdel -r ${gitlab_user}
|
id ${gitlab_user} && userdel -r ${gitlab_user}
|
||||||
rm -rf ${gitlab_data_dir}
|
rm -rf ${gitlab_data_dir}
|
||||||
su postgres -c "dropdb gitlab_production"
|
su postgres -c "dropdb gitlab_production"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue