From 97085b79e49e571af41546c1a500aafcdc326206 Mon Sep 17 00:00:00 2001 From: simatec Date: Mon, 19 Dec 2022 13:43:14 +0100 Subject: [PATCH] (simatec) Fix update.sh --- update.sh | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index ed735d8..3886bd4 100644 --- a/update.sh +++ b/update.sh @@ -61,6 +61,7 @@ done installPth="/opt/piler-docker" configPth="/opt/piler-docker/config" +etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data" # config load . ./piler.conf @@ -127,9 +128,130 @@ docker-compose up --force-recreate --build -d echo "${blue}********* Piler started... Please wait... *********${normal}" BLA::start_loading_animation "${BLA_metro[@]}" -sleep 10 +sleep 20 BLA::stop_loading_animation +if [ ! -f $etcPth/config-site.php.bak ]; then + cp $etcPth/config-site.php $etcPth/config-site.php.bak +else + rm $etcPth/config-site.php + cp $etcPth/config-site.php.bak $etcPth/config-site.php +fi + +echo +echo "${blue}${HLINE}" +echo "${blue} set User settings ..." +echo "${blue}${HLINE}${normal}" +echo + +cat >> $etcPth/config-site.php <> $etcPth/config-site.php <> $etcPth/piler.conf <