diff --git a/ajax/system/sys_perform_update.php b/ajax/system/sys_perform_update.php index b92320a5..06948f97 100644 --- a/ajax/system/sys_perform_update.php +++ b/ajax/system/sys_perform_update.php @@ -12,7 +12,7 @@ if (isset($_POST['csrf_token'])) { } // set installer path + options $path = getenv("DOCUMENT_ROOT"); - $opts = " --update --yes --path $path"; + $opts = " --update --yes --check 0 --path $path"; $installer = "sudo /etc/raspap/system/raspbian.sh"; $execUpdate = $installer.$opts; diff --git a/installers/common.sh b/installers/common.sh index f884ad73..21395e85 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -318,7 +318,7 @@ function _create_hostapd_scripts() { # Generate plugin helper scripts function _create_plugin_scripts() { _install_log "Creating plugin helper scripts" - sudo mkdir $raspap_dir/plugins || _install_status 1 "Unable to create directory '$raspap_dir/plugins'" + sudo mkdir -p $raspap_dir/plugins || _install_status 1 "Unable to create directory '$raspap_dir/plugins'" # Copy plugin helper script sudo cp "$webroot_dir/installers/"plugin_helper.sh "$raspap_dir/plugins" || _install_status 1 "Unable to move plugin script"