From 1f9638c9188b2b41aebb6f19a05788b8d8810ed0 Mon Sep 17 00:00:00 2001 From: p0lycarpio Date: Mon, 25 Apr 2022 21:21:20 +0200 Subject: [PATCH] fix order of upgrade functions --- installers/common.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index f31821aa..542d5269 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -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