diff --git a/installers/common.sh b/installers/common.sh index 1736c74..a72f25d 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -399,16 +399,9 @@ function optimize_php() { sudo cp "$phpcgiconf" "$raspap_dir/backups/php.ini.$datetimephpconf" sudo ln -sf "$raspap_dir/backups/php.ini.$datetimephpconf" "$raspap_dir/backups/php.ini" - echo -n "Enabling HttpOnly for session cookies " - # echo -n "Enable HttpOnly for session cookies (Recommended)? [Y/n]: " - # read answer - # if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then - echo "Php-cgi enabling session.cookie_httponly." - sudo sed -i -E 's/^session\.cookie_httponly\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n]o))\s*$/session.cookie_httponly = 1/' "$phpcgiconf" - # fi - + echo -n "Enabling HttpOnly for session cookies " + sudo sed -i -E 's/^session\.cookie_httponly\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n]o))\s*$/session.cookie_httponly = 1/' "$phpcgiconf" if [ "$php_package" = "php7.0-cgi" ]; then - # echo -n "Enabling PHP OPCache" echo -n "Enable PHP OPCache? [Y/n]: " read answer if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then @@ -447,11 +440,9 @@ function install_raspap() { install_dependencies create_raspap_directories common_interfaces -# stop_lokinet check_for_networkmananger optimize_php enable_php_lighttpd -# create_raspap_directories check_for_old_configs download_latest_files change_file_ownership