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 <