mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Bugfix. Resolves #638
This commit is contained in:
parent
08cb4742d2
commit
5c592ccadc
@ -357,7 +357,6 @@ function _check_for_old_configs() {
|
|||||||
|
|
||||||
# Move configuration file to the correct location
|
# Move configuration file to the correct location
|
||||||
function _move_config_file() {
|
function _move_config_file() {
|
||||||
if [ "$upgrade" == 0 ]; then
|
|
||||||
if [ ! -d "$raspap_dir" ]; then
|
if [ ! -d "$raspap_dir" ]; then
|
||||||
_install_status 1 "'$raspap_dir' directory doesn't exist"
|
_install_status 1 "'$raspap_dir' directory doesn't exist"
|
||||||
fi
|
fi
|
||||||
@ -365,7 +364,6 @@ function _move_config_file() {
|
|||||||
_install_log "Moving configuration file to $raspap_dir"
|
_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 cp "$webroot_dir"/raspap.php "$raspap_dir" || _install_status 1 "Unable to move files to '$raspap_dir'"
|
||||||
sudo chown -R $raspap_user:$raspap_user "$raspap_dir" || _install_status 1 "Unable to change file ownership for '$raspap_dir'"
|
sudo chown -R $raspap_user:$raspap_user "$raspap_dir" || _install_status 1 "Unable to change file ownership for '$raspap_dir'"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set up default configuration
|
# Set up default configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user