diff options
author | Артём Шустров | 2018-01-02 00:03:51 +1000 |
---|---|---|
committer | Артём Шустров | 2018-01-02 00:03:51 +1000 |
commit | 699335eb22af3e8d797b0e1874a66218b085799b (patch) | |
tree | a7e8a8552eceef2a4118a08efa5ad2b8c305069b /otrs.install | |
parent | 25f85e3a3a11221c9f24d88b43b8d7e105e626ff (diff) | |
download | aur-699335eb22af3e8d797b0e1874a66218b085799b.tar.gz |
6.0.1-1 Обновление программы
Плановое обновление программы
Diffstat (limited to 'otrs.install')
-rw-r--r-- | otrs.install | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/otrs.install b/otrs.install index 40b53b2c636c..e143238f1906 100644 --- a/otrs.install +++ b/otrs.install @@ -1,14 +1,11 @@ post_install() { - getent passwd otrs > /dev/null || useradd -r -M -N -g http -s /bin/bash -d /usr/share/webapps/otrs otrs > /dev/null - /usr/share/webapps/otrs/bin/./otrs.SetPermissions.pl \ - --otrs-user=otrs \ - --web-group=http \ - /usr/share/webapps/otrs > /dev/null - chmod 2775 /usr/share/webapps/otrs + getent passwd otrs > /dev/null 2>&1 || useradd -r -M -N -g http -s /bin/bash -d /usr/share/webapps/otrs otrs > /dev/null 2>&1 + /usr/share/webapps/otrs/bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=http /usr/share/webapps/otrs > /dev/null 2>&1 + chmod 2775 /usr/share/webapps/otrs } post_remove() { - userdel -rf otrs + getent passwd otrs > /dev/null 2>&1 && userdel -rf otrs > /dev/null 2>&1 } pre_upgrade() { @@ -17,9 +14,6 @@ pre_upgrade() { } post_upgrade() { - /usr/share/webapps/otrs/bin/./otrs.SetPermissions.pl \ - --otrs-user=otrs \ - --web-group=http \ - /usr/share/webapps/otrs > /dev/null - chmod 2775 /usr/share/webapps/otrs + /usr/share/webapps/otrs/bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=http /usr/share/webapps/otrs > /dev/null 2>&1 + chmod 2775 /usr/share/webapps/otrs } |