summarylogtreecommitdiffstats
path: root/terraria-server.install
diff options
context:
space:
mode:
Diffstat (limited to 'terraria-server.install')
-rw-r--r--terraria-server.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/terraria-server.install b/terraria-server.install
index 7f7323d7b30b..b797e99a3d5c 100644
--- a/terraria-server.install
+++ b/terraria-server.install
@@ -10,10 +10,10 @@ post_install() {
}
post_upgrade() {
- if getent passwd terraria && [[ $(id -u terraria) == 197 ]]; then
+ if getent passwd terraria &>/dev/null && [[ $(id -u terraria) == 197 ]]; then
userdel terraria
fi
- if getent group terraria && [[ $(id -g terraria) == 197 ]]; then
+ if getent group terraria &>/dev/null && [[ $(id -g terraria) == 197 ]]; then
groupdel terraria
fi
post_install