From 8d21e674bf54ad2ed6c2af4b87d5375689784243 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sat, 12 Oct 2024 23:34:19 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index 208aa2fb..a3903a0b 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -1461,6 +1461,13 @@ download_skeleton_directory_from_github(){ echo "Downloading configuration files to ${ETC_DIR}" git clone https://github.com/stefanpejcic/openpanel-configuration ${ETC_DIR} > /dev/null 2>&1 + + if [ -f "${CONFIG_FILE}" ]; then + echo -e "[${GREEN} OK ${RESET}] Configuration created successfully." + else + radovan 1 "Dowloading configuration files from GitHub failed, main conf file ${CONFIG_FILE} is missing." + fi + # added in 0.2.9 chmod +x /etc/openpanel/ftp/start_vsftpd.sh @@ -1469,14 +1476,7 @@ download_skeleton_directory_from_github(){ systemctl daemon-reload > /dev/null 2>&1 service floatingip start > /dev/null 2>&1 systemctl enable floatingip > /dev/null 2>&1 - - if [ -f "${CONFIG_FILE}" ]; then - echo -e "[${GREEN} OK ${RESET}] Configuration created successfully." - else - radovan 1 "Dowloading configuration files from GitHub failed, main conf file ${CONFIG_FILE} is missing." - fi - - + }