fix order of upgrade functions

This commit is contained in:
p0lycarpio 2022-04-25 21:21:20 +02:00
parent 88a57a5349
commit 1f9638c918
1 changed files with 7 additions and 2 deletions

View File

@ -43,9 +43,14 @@ function _install_raspap() {
_update_system_packages
_install_dependencies
_enable_php_lighttpd
_create_raspap_directories
if [ "$upgrade" == 1 ]; then
_check_for_old_configs
_create_raspap_directories
else
_create_raspap_directories
_check_for_old_configs
fi
_optimize_php
_check_for_old_configs
_download_latest_files
_change_file_ownership
_create_hostapd_scripts