Skip to content

Commit 8321a24

Browse files
authored
Merge pull request hestiacp#1813 from jaapmarcus/fix/create-default-settings
Add new default values config on install
2 parents a00adb6 + 1cbe21d commit 8321a24

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

install/hst-install-debian.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,22 @@ echo "@reboot root sleep 10 && rm /etc/cron.d/hestia-ssl && /usr/local/hestia/bi
18581858
echo "[ * ] Configuring File Manager..."
18591859
$HESTIA/bin/v-add-sys-filemanager quiet
18601860

1861+
echo "[ * ] Finish up install..."
1862+
write_config_value "PHPMYADMIN_KEY" ""
1863+
write_config_value "POLICY_USER_VIEW_SUSPENDED" "no"
1864+
write_config_value "POLICY_USER_VIEW_LOGS" "yes"
1865+
write_config_value "POLICY_USER_EDIT_WEB_TEMPLATES" "true"
1866+
write_config_value "POLICY_USER_EDIT_DNS_TEMPLATES" "yes"
1867+
write_config_value "POLICY_USER_EDIT_DETAILS" "yes"
1868+
write_config_value "POLICY_USER_DELETE_LOGS" "yes"
1869+
write_config_value "POLICY_USER_CHANGE_THEME" "yes"
1870+
write_config_value "POLICY_SYSTEM_PROTECTED_ADMIN" "no"
1871+
write_config_value "POLICY_SYSTEM_PASSWORD_RESET" "no"
1872+
write_config_value "POLICY_SYSTEM_HIDE_SERVICES" "no"
1873+
write_config_value "POLICY_SYSTEM_ENABLE_BACON" "no"
1874+
write_config_value "PLUGIN_APP_INSTALLER" "true"
1875+
write_config_value "DEBUG_MODE" "no"
1876+
write_config_value "ENFORCE_SUBDOMAIN_OWNERSHIP" "yes"
18611877

18621878
#----------------------------------------------------------#
18631879
# Hestia Access Info #

install/hst-install-ubuntu.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,23 @@ $HESTIA/bin/v-add-sys-filemanager quiet
18861886
# create cronjob to generate ssl
18871887
echo "@reboot root sleep 10 && rm /etc/cron.d/hestia-ssl && /usr/local/hestia/bin/v-add-letsencrypt-host" > /etc/cron.d/hestia-ssl
18881888

1889+
echo "[ * ] Finish up install..."
1890+
write_config_value "PHPMYADMIN_KEY" ""
1891+
write_config_value "POLICY_USER_VIEW_SUSPENDED" "no"
1892+
write_config_value "POLICY_USER_VIEW_LOGS" "yes"
1893+
write_config_value "POLICY_USER_EDIT_WEB_TEMPLATES" "true"
1894+
write_config_value "POLICY_USER_EDIT_DNS_TEMPLATES" "yes"
1895+
write_config_value "POLICY_USER_EDIT_DETAILS" "yes"
1896+
write_config_value "POLICY_USER_DELETE_LOGS" "yes"
1897+
write_config_value "POLICY_USER_CHANGE_THEME" "yes"
1898+
write_config_value "POLICY_SYSTEM_PROTECTED_ADMIN" "no"
1899+
write_config_value "POLICY_SYSTEM_PASSWORD_RESET" "no"
1900+
write_config_value "POLICY_SYSTEM_HIDE_SERVICES" "no"
1901+
write_config_value "POLICY_SYSTEM_ENABLE_BACON" "no"
1902+
write_config_value "PLUGIN_APP_INSTALLER" "true"
1903+
write_config_value "DEBUG_MODE" "no"
1904+
write_config_value "ENFORCE_SUBDOMAIN_OWNERSHIP" "yes"
1905+
18891906
#----------------------------------------------------------#
18901907
# Hestia Access Info #
18911908
#----------------------------------------------------------#

0 commit comments

Comments
 (0)