Skip to content

Commit ebf12f3

Browse files
LupulScIT-Raphael
authored andcommitted
Update installers for hestia global config in /etc
1 parent bedecec commit ebf12f3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

install/hst-install-debian.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,12 @@ mkdir -p /etc/sudoers.d
943943
cp -f $HESTIA_INSTALL_DIR/sudo/admin /etc/sudoers.d/
944944
chmod 440 /etc/sudoers.d/admin
945945

946+
# Add Hestia global config
947+
if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
948+
mkdir -p /etc/hestiacp
949+
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
950+
fi
951+
946952
# Configuring system env
947953
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
948954
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile.d/hestia.sh

install/hst-install-ubuntu.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,12 @@ mkdir -p /etc/sudoers.d
999999
cp -f $HESTIA_INSTALL_DIR/sudo/admin /etc/sudoers.d/
10001000
chmod 440 /etc/sudoers.d/admin
10011001

1002+
# Add Hestia global config
1003+
if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
1004+
mkdir -p /etc/hestiacp
1005+
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
1006+
fi
1007+
10021008
# Configuring system env
10031009
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
10041010
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile.d/hestia.sh

0 commit comments

Comments
 (0)