From 68ebb3ba239edd37a56bd4d93bff0ab849e22051 Mon Sep 17 00:00:00 2001 From: simatec Date: Mon, 23 Jan 2023 12:51:07 +0100 Subject: [PATCH] (simatec) Beta v0.9.0 --- install-piler.sh | 4 ++- update.sh | 73 +++++++++++++++++++----------------------------- 2 files changed, 31 insertions(+), 46 deletions(-) diff --git a/install-piler.sh b/install-piler.sh index afa1fb5..145bd23 100644 --- a/install-piler.sh +++ b/install-piler.sh @@ -277,7 +277,9 @@ fi # Build Piler cd $buildPth -bash build.sh +echo echo "${greenBold}Start Piler-Build...${normal}" && \ +bash build.sh && \ +echo "${greenBold}Piler-Build finish${normal}" if [ -f $installPth/docker-compose.yml ]; then rm $installPth/docker-compose.yml diff --git a/update.sh b/update.sh index d458f3d..d3c8958 100644 --- a/update.sh +++ b/update.sh @@ -170,12 +170,13 @@ if [ ! -d $installPth/backup ]; then mkdir -p $installPth/backup fi -cp $etcPth/config-site.php.bak $installPth/backup/ && cp $etcPth/config-site.php $installPth/backup/ -cp $etcPth/piler.conf.bak $installPth/backup/ && cp $etcPth/piler.conf $installPth/backup/ -cp $etcPth/.my.cnf $installPth/backup/ +#cp $etcPth/config-site.php.bak $installPth/backup/ && cp $etcPth/config-site.php $installPth/backup/ +#cp $etcPth/piler.conf.bak $installPth/backup/ && cp $etcPth/piler.conf $installPth/backup/ +#cp $etcPth/.my.cnf $installPth/backup/ +cp $etcPth/* $installPth/backup/ # delete old files -rm -f $etcPth/piler.key $etcPth/piler.pem $etcPth/config-site.php +#rm -f $etcPth/piler.key $etcPth/piler.pem $etcPth/config-site.php # Added Manticore if [ ! -f $etcPth/MANTICORE ]; then @@ -184,7 +185,9 @@ fi # Build Piler cd $buildPth -bash build.sh +echo echo "${greenBold}Start Piler-Build...${normal}" && \ +bash build.sh && \ +echo "${greenBold}Piler-Build finish${normal}" # Copy docker-compose.yml if [ "$USE_LETSENCRYPT" = "yes" ]; then @@ -218,52 +221,32 @@ else docker-compose up --force-recreate --build -d fi -echo "${blue}********* Piler started... Please wait... *********${normal}" +#echo "${blue}********* Piler started... Please wait... *********${normal}" -BLA::start_loading_animation "${BLA_metro[@]}" -sleep 20 -BLA::stop_loading_animation +#BLA::start_loading_animation "${BLA_metro[@]}" +#sleep 20 +#BLA::stop_loading_animation # Restore Config -cp $installPth/backup/config-site.php.bak $etcPth/ && cp $installPth/backup/config-site.php $etcPth/ -cp $installPth/backup/piler.conf.bak $etcPth/ && cp $installPth/backup/piler.conf $etcPth/ -cp $installPth/backup/.my.cnf $etcPth/ - -if [ "$USE_MAILCOW" = true ]; then - -echo -echo "${blue}${HLINE}" -echo "set Mailcow Api-Key config" -echo "${blue}${HLINE}${normal}" -echo - -cat >> $etcPth/config-site.php <