summarylogtreecommitdiffstats
path: root/gogs.install
diff options
context:
space:
mode:
Diffstat (limited to 'gogs.install')
-rw-r--r--gogs.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/gogs.install b/gogs.install
index 87993db60236..1d8fb4b61e0b 100644
--- a/gogs.install
+++ b/gogs.install
@@ -28,7 +28,7 @@ pre_install() {
passwd -l gogs
else
local _OldHome="$( getent passwd gogs | cut -d: -f6 )"
- if [ ${_OldHome} != "/srv/gogs" ]; then
+ if [[ ${_OldHome} != "/srv/gogs" ]]; then
echo
echo "Setting gogs home directory to /srv/gogs"
usermod -c 'Gogs service user' -g gogs -d /srv/gogs -L -s /bin/bash gogs