mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Modify conditions for update/upgrade
This commit is contained in:
parent
387f52a2e4
commit
e6a90e728f
@ -563,9 +563,9 @@ function _create_openvpn_scripts() {
|
||||
|
||||
# Fetches latest files from github to webroot
|
||||
function _download_latest_files() {
|
||||
if [ -d "$webroot_dir" ] && [ -z "$update" ]; then
|
||||
if [ -d "$webroot_dir" ] && [ "$update" == 0 ]; then
|
||||
sudo mv $webroot_dir "$webroot_dir.`date +%F-%R`" || _install_status 1 "Unable to remove old webroot directory"
|
||||
elif [ "$update" == 1 ]; then
|
||||
elif [ "$upgrade" == 1 ] || [ "$update" == 1 ]; then
|
||||
sudo rm -rf "$webroot_dir"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user