@@ -20,26 +20,27 @@ color
2020catch_errors
2121
2222function update_script() {
23- header_info
24- check_container_storage
25- check_container_resources
26- msg_info " Updating ${APP} LXC"
23+ header_info
24+ check_container_storage
25+ check_container_resources
2726
28- if command -v ghost & > /dev/null; then
29- current_version=$( ghost version | grep ' Ghost-CLI version' | awk ' {print $3}' )
30- latest_version=$( npm show ghost-cli version)
31- if [ " $current_version " != " $latest_version " ]; then
32- msg_info " Updating ${APP} from version v${current_version} to v${latest_version} "
33- $STD npm install -g ghost-cli@latest
34- msg_ok " Updated Successfully"
35- else
36- msg_ok " ${APP} is already at v${current_version} "
37- fi
27+ NODE_VERSION=" 22" setup_nodejs
28+ msg_info " Updating ${APP} LXC"
29+ if command -v ghost & > /dev/null; then
30+ current_version=$( ghost version | grep ' Ghost-CLI version' | awk ' {print $3}' )
31+ latest_version=$( npm show ghost-cli version)
32+ if [ " $current_version " != " $latest_version " ]; then
33+ msg_info " Updating ${APP} from version v${current_version} to v${latest_version} "
34+ $STD npm install -g ghost-cli@latest
35+ msg_ok " Updated Successfully"
3836 else
39- msg_error " No ${APP} Installation Found!"
40- exit
37+ msg_ok " ${APP} is already at v${current_version} "
4138 fi
39+ else
40+ msg_error " No ${APP} Installation Found!"
4241 exit
42+ fi
43+ exit
4344}
4445
4546start
@@ -49,4 +50,4 @@ description
4950msg_ok " Completed Successfully!\n"
5051echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
5152echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
52- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :2368${CL} "
53+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :2368${CL} "
0 commit comments