1.3.3.sh 920 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Hestia Control Panel upgrade script for target version 1.3.3
  3. #######################################################################################
  4. ####### Place additional commands below. #######
  5. #######################################################################################
  6. # Check if keys folder exists and adjust permissions
  7. if [ -d "$HESTIA/data/keys" ]; then
  8. echo '[ * ] Update permissions'
  9. chmod 750 "$HESTIA/data/keys"
  10. chown admin:root "$HESTIA/data/keys"
  11. fi
  12. if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
  13. echo '[ * ] Create global Hestia config'
  14. mkdir -p /etc/hestiacp
  15. 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
  16. fi