Skip to content

Commit

Permalink
Hotfix: delete _move_config_file (obsolete)
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Oct 2, 2023
1 parent 2270fe4 commit 2ac5f94
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions installers/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ac5f94

Please sign in to comment.