Skip to content

Commit a87ee33

Browse files
committed
Add upgrade script
1 parent 027a62c commit a87ee33

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

install/upgrade/versions/1.3.3.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.3.3
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
9+
10+
echo '[ * ] Update permissions'
11+
setfacl -m "g:hestia-users:---" "$HESTIA"
12+
13+
14+
if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
15+
echo '[ * ] Create global Hestia config'
16+
17+
mkdir -p /etc/hestiacp
18+
echo -e "# Do not edit this file, will get overwritten on next upgrade, use /etc/hestiacp/local.conf instead\n\nexport HESTIA='/usr/local/hestia'\n\n[[ -f /etc/hestiacp/local.conf ]] && source /etc/hestiacp/local.conf" > /etc/hestiacp/hestia.conf
19+
fi

0 commit comments

Comments
 (0)