diff options
author | Артём Шустров | 2014-12-28 14:19:37 +1000 |
---|---|---|
committer | Артём Шустров | 2014-12-28 14:19:38 +1000 |
commit | bc6c5cb9a1a4f5e3fd23f10445041c1066835cb3 (patch) | |
tree | b8b4374b8888a56ffe91b37f1c0504ae6dc19ff5 /otrs.install | |
parent | 0815eedd997f22a04f34d6980b45130474d75b0a (diff) | |
download | aur-bc6c5cb9a1a4f5e3fd23f10445041c1066835cb3.tar.gz |
4.0.3-1 Обновление программы
Крупное обновление программы с версии 3.3 на 4.0.
Отлючена поддержка загрузки дополнительных пакетов.
Файлы конфигураций scheduler_watchdog и GenericAgent.pm
перенесены в /etc/webapps/otrs. Создан пользователь otrs.
Diffstat (limited to 'otrs.install')
-rw-r--r-- | otrs.install | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/otrs.install b/otrs.install index f411e444bb2f..08df8defacdc 100644 --- a/otrs.install +++ b/otrs.install @@ -1,54 +1,20 @@ post_install() { + getent passwd otrs > /dev/null || useradd -g http -d /usr/share/webapps/otrs otrs -M -N > /dev/null /usr/share/webapps/otrs/bin/./otrs.SetPermissions.pl \ - --otrs-user=http \ - --otrs-group=http \ - --web-user=http \ - --web-group=http \ + --otrs-user=otrs \ + --web-group=http \ /usr/share/webapps/otrs > /dev/null - -cat << EOM - -------------------------------------------------------------------------------------- -Manual post-installation steps: -------------------------------------------------------------------------------------- -Read /usr/share/webapps/otrs/INSTALL.md - /usr/share/webapps/otrs/README.database.md - /usr/share/webapps/otrs/README.webserver.md -------------------------------------------------------------------------------------- -Extentions ITSM is located /usr/share/webapps/otrs/extentions/itsm -Extentions Packages is located /usr/share/webapps/otrs/extentions/packages -------------------------------------------------------------------------------------- - -EOM + chmod 2775 /usr/share/webapps/otrs } -pre_upgrade(){ - if [ ! -h /usr/share/webapps/otrs/Kernel/Config.pm ] - then - mkdir -p /etc/webapps/otrs - cp /usr/share/webapps/otrs/Kernel/Config.pm /etc/webapps/otrs/Config.pm - chown http:http -R /etc/webapps/otrs - fi +post_remove() { + userdel -rf otrs } post_upgrade() { /usr/share/webapps/otrs/bin/./otrs.SetPermissions.pl \ - --otrs-user=http \ - --otrs-group=http \ - --web-user=http \ - --web-group=http \ + --otrs-user=otrs \ + --web-group=http \ /usr/share/webapps/otrs > /dev/null - -cat << EOM - -------------------------------------------------------------------------------------- -Manual post-upgrade steps: -------------------------------------------------------------------------------------- -Read /usr/share/webapps/otrs/UPGRADING.md -------------------------------------------------------------------------------------- -Extentions ITSM is located /usr/share/webapps/otrs/extentions/itsm -Extentions Packages is located /usr/share/webapps/otrs/extentions/packages -------------------------------------------------------------------------------------- - -EOM + chmod 2775 /usr/share/webapps/otrs } |