mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Hotfix: delete _move_config_file (obsolete)
This commit is contained in:
parent
2270fe4953
commit
2ac5f94594
@ -52,7 +52,6 @@ function _install_raspap() {
|
|||||||
_create_hostapd_scripts
|
_create_hostapd_scripts
|
||||||
_create_lighttpd_scripts
|
_create_lighttpd_scripts
|
||||||
_install_lighttpd_configs
|
_install_lighttpd_configs
|
||||||
_move_config_file
|
|
||||||
_default_configuration
|
_default_configuration
|
||||||
_configure_networking
|
_configure_networking
|
||||||
_prompt_install_adblock
|
_prompt_install_adblock
|
||||||
@ -561,18 +560,6 @@ function _check_for_old_configs() {
|
|||||||
_install_status 0
|
_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
|
# Set up default configuration
|
||||||
function _default_configuration() {
|
function _default_configuration() {
|
||||||
if [ "$upgrade" == 0 ]; then
|
if [ "$upgrade" == 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user