forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.3.3.sh
More file actions
21 lines (16 loc) · 901 Bytes
/
1.3.3.sh
File metadata and controls
21 lines (16 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Hestia Control Panel upgrade script for target version 1.3.3
#######################################################################################
####### Place additional commands below. #######
#######################################################################################
# Check if keys folder exists and adjust permissions
if [ -d "$HESTIA/data/keys" ]; then
echo '[ * ] Update permissions'
chmod 750 "$HESTIA/data/keys"
chown admin:root "$HESTIA/data/keys"
fi
if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
echo '[ * ] Create global Hestia config'
mkdir -p /etc/hestiacp
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
fi