diff --git a/installers/common.sh b/installers/common.sh index ff759c05..c6981f67 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -52,7 +52,6 @@ function _install_raspap() { _create_hostapd_scripts _create_lighttpd_scripts _install_lighttpd_configs - _move_config_file _default_configuration _configure_networking _prompt_install_adblock @@ -561,18 +560,6 @@ function _check_for_old_configs() { _install_status 0 } -# Move configuration file to the correct location -function _move_config_file() { - if [ ! -d "$raspap_dir" ]; then - _install_status 1 "'$raspap_dir' directory doesn't exist" - fi - - # Copy config file and make writable by www-data group - _install_log "Moving configuration file to $raspap_dir" - sudo cp "$webroot_dir"/raspap.php "$raspap_dir" || _install_status 1 "Unable to move files to '$raspap_dir'" - sudo chown -c $raspap_user:"$raspap_user" "$raspap_dir"/raspap.php || _install_status 1 "Unable change owner and/or group" -} - # Set up default configuration function _default_configuration() { if [ "$upgrade" == 0 ]; then