1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Updated download_latest_files()

This commit is contained in:
billz 2019-04-24 22:20:41 +00:00
parent 8796b5d359
commit d247f3fb90

View File

@ -138,6 +138,10 @@ function download_latest_files() {
install_log "Cloning latest files from github" install_log "Cloning latest files from github"
git clone --depth 1 https://github.com/billz/raspap-webgui /tmp/raspap-webgui || install_error "Unable to download files from github" git clone --depth 1 https://github.com/billz/raspap-webgui /tmp/raspap-webgui || install_error "Unable to download files from github"
sudo mv /tmp/raspap-webgui $webroot_dir || install_error "Unable to move raspap-webgui to web root" sudo mv /tmp/raspap-webgui $webroot_dir || install_error "Unable to move raspap-webgui to web root"
# Move icons to webroot
echo -n "Installing high-res favicons"
sudo mv $webroot_dir/dist/icons/* $webroot_dir || install_error "Unable to move icons to web root"
} }
# Sets files ownership in web root directory # Sets files ownership in web root directory
@ -229,10 +233,6 @@ function default_configuration() {
sudo mv $webroot_dir/installers/raspap.service /lib/systemd/system/ || install_error "Unable to move raspap.service file" sudo mv $webroot_dir/installers/raspap.service /lib/systemd/system/ || install_error "Unable to move raspap.service file"
sudo systemctl enable raspap.service || install_error "Failed to enable raspap.service" sudo systemctl enable raspap.service || install_error "Failed to enable raspap.service"
fi fi
# Move icons to webroot
echo -n "Installing high-res favicons"
sudo mv $webroot_dir/dist/icons/* $webroot_dir
} }
# Add a single entry to the sudoers file # Add a single entry to the sudoers file