mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix for #225, (Credits to DrStacheWH)
Removed duplicated create_logging_scripts function. Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
parent
aa96780c0b
commit
e428271ef2
@ -113,14 +113,12 @@ function create_logging_scripts() {
|
|||||||
sudo mkdir $raspap_dir/hostapd || install_error "Unable to create directory '$raspap_dir/hostapd'"
|
sudo mkdir $raspap_dir/hostapd || install_error "Unable to create directory '$raspap_dir/hostapd'"
|
||||||
|
|
||||||
# Move existing shell scripts
|
# Move existing shell scripts
|
||||||
sudo mv $webroot_dir/installers/*log.sh $raspap_dir/hostapd || install_error "Unable to move logging scripts"
|
sudo mv "$webroot_dir/installers/"*log.sh "$raspap_dir/hostapd" || install_error "Unable to move logging scripts"
|
||||||
|
# Make enablelog.sh and disablelog.sh not writable by www-data group.
|
||||||
|
sudo chown -c root:"$raspap_user" "$raspap_dir/hostapd/"*log.sh || install_error "Unable change owner and/or group."
|
||||||
|
sudo chmod 750 "$raspap_dir/hostapd/"*log.sh || install_error "Unable to change file permissions."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate logging enable/disable files for hostapd
|
|
||||||
function create_logging_scripts() {
|
|
||||||
sudo mkdir /etc/raspap/hostapd
|
|
||||||
sudo mv /var/www/html/installers/*log.sh /etc/raspap/hostapd
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fetches latest files from github to webroot
|
# Fetches latest files from github to webroot
|
||||||
function download_latest_files() {
|
function download_latest_files() {
|
||||||
|
Loading…
Reference in New Issue
Block a user