mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 09:07:39 +02:00
Merge pull request #1789 from RaspAP/fix/installer-update
Fix for automated version update on About page
This commit is contained in:
commit
41e86a9e51
@ -12,7 +12,7 @@ if (isset($_POST['csrf_token'])) {
|
|||||||
}
|
}
|
||||||
// set installer path + options
|
// set installer path + options
|
||||||
$path = getenv("DOCUMENT_ROOT");
|
$path = getenv("DOCUMENT_ROOT");
|
||||||
$opts = " --update --yes --path $path";
|
$opts = " --update --yes --check 0 --path $path";
|
||||||
$installer = "sudo /etc/raspap/system/raspbian.sh";
|
$installer = "sudo /etc/raspap/system/raspbian.sh";
|
||||||
$execUpdate = $installer.$opts;
|
$execUpdate = $installer.$opts;
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ function _create_hostapd_scripts() {
|
|||||||
# Generate plugin helper scripts
|
# Generate plugin helper scripts
|
||||||
function _create_plugin_scripts() {
|
function _create_plugin_scripts() {
|
||||||
_install_log "Creating plugin helper 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
|
# Copy plugin helper script
|
||||||
sudo cp "$webroot_dir/installers/"plugin_helper.sh "$raspap_dir/plugins" || _install_status 1 "Unable to move plugin script"
|
sudo cp "$webroot_dir/installers/"plugin_helper.sh "$raspap_dir/plugins" || _install_status 1 "Unable to move plugin script"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user