1- #! /bin/bash
2-
3- # Run triggers only on updates
4- if [ ! -e " /usr/local/hestia/data/users/admin" ]; then
5- exit
6- fi
7-
8- # Run SUDO trigger
9- if [ -x " /usr/local/hestia/upd/add_sudo.sh" ]; then
10- /usr/local/hestia/upd/add_sudo.sh
11- fi
12-
13- # Run Notification trigger
14- if [ -x " /usr/local/hestia/upd/add_notifications.sh" ]; then
15- /usr/local/hestia/upd/add_notifications.sh
16- fi
17-
18- # Run session save path trigger
19- if [ -x " /usr/local/hestia/upd/fix_sessions.sh" ]; then
20- /usr/local/hestia/upd/fix_sessions.sh
21- fi
22-
23- if [ -x /usr/local/hestia/upd/fix_nginx_auth.sh ]; then
24- /usr/local/hestia/upd/fix_nginx_auth.sh
25- fi
26-
27- if [ -x /usr/local/hestia/upd/fix_roundcube.sh ]; then
28- /usr/local/hestia/upd/fix_roundcube.sh
29- fi
30-
1+ #! /bin/bash
2+
3+ # Run triggers only on updates
4+ if [ ! -e " /usr/local/hestia/data/users/admin" ]; then
5+ exit
6+ fi
7+
8+ # Run SUDO trigger
9+ if [ -x " /usr/local/hestia/upd/add_sudo.sh" ]; then
10+ /usr/local/hestia/upd/add_sudo.sh
11+ fi
12+
13+ # Run Notification trigger
14+ if [ -x " /usr/local/hestia/upd/add_notifications.sh" ]; then
15+ /usr/local/hestia/upd/add_notifications.sh
16+ fi
17+
18+ # Run session save path trigger
19+ if [ -x " /usr/local/hestia/upd/fix_sessions.sh" ]; then
20+ /usr/local/hestia/upd/fix_sessions.sh
21+ fi
22+
23+ if [ -x /usr/local/hestia/upd/fix_nginx_auth.sh ]; then
24+ /usr/local/hestia/upd/fix_nginx_auth.sh
25+ fi
26+
27+ if [ -x /usr/local/hestia/upd/fix_roundcube.sh ]; then
28+ /usr/local/hestia/upd/fix_roundcube.sh
29+ fi
30+
3131exit 0
0 commit comments