(simatec) Beta v0.8.3
This commit is contained in:
parent
cc10d5e444
commit
dcf14cfbed
4 changed files with 80 additions and 46 deletions
|
@ -145,6 +145,9 @@ To leave the container on the console you have to execute 2x `exit`.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 0.8.3 (19.01.2023)
|
||||||
|
* (simatec) Update himself added
|
||||||
|
|
||||||
### 0.8.2 (18.01.2023)
|
### 0.8.2 (18.01.2023)
|
||||||
* (simatec) docker, curl and git Check added
|
* (simatec) docker, curl and git Check added
|
||||||
* (simatec) Update Config added
|
* (simatec) Update Config added
|
||||||
|
|
|
@ -21,6 +21,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HLINE="=================================================================="
|
HLINE="=================================================================="
|
||||||
|
HLINE_SMALL="==============================="
|
||||||
|
|
||||||
BLA_metro=( 0.2 ' ' '= ' '== ' '=== ' ' ===' ' ==' ' =' )
|
BLA_metro=( 0.2 ' ' '= ' '== ' '=== ' ' ===' ' ==' ' =' )
|
||||||
|
|
||||||
|
@ -88,16 +89,24 @@ fi
|
||||||
#######################################################################################
|
#######################################################################################
|
||||||
|
|
||||||
# Path-Settings
|
# Path-Settings
|
||||||
installPth="/opt/piler-docker"
|
installPth=`pwd`
|
||||||
configPth="/opt/piler-docker/config"
|
configPth="$installPth/config"
|
||||||
etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data"
|
etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data"
|
||||||
|
|
||||||
# Load config
|
|
||||||
. ./piler.conf
|
|
||||||
|
|
||||||
############################## Installer Settings ######################################
|
############################## Installer Settings ######################################
|
||||||
|
|
||||||
if [ ! -f $installPth/.configDone ]; then
|
if [ ! -f $installPth/.configDone ]; then
|
||||||
|
|
||||||
|
# create config
|
||||||
|
if [ ! -f $installPth/piler.conf ]; then
|
||||||
|
if [ -f $installPth/piler.conf.example ]; then
|
||||||
|
cp $installPth/piler.conf.example $installPth/piler.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load config
|
||||||
|
. ./piler.conf
|
||||||
|
|
||||||
# Piler-Domain
|
# Piler-Domain
|
||||||
read -ep "Please set your Piler-Domain (Enter for default: $PILER_DOMAIN): " pilerDomain
|
read -ep "Please set your Piler-Domain (Enter for default: $PILER_DOMAIN): " pilerDomain
|
||||||
pilerDomain=${pilerDomain:=$PILER_DOMAIN}
|
pilerDomain=${pilerDomain:=$PILER_DOMAIN}
|
||||||
|
@ -201,6 +210,9 @@ if [ ! -f $installPth/.configDone ]; then
|
||||||
touch $installPth/.configDone
|
touch $installPth/.configDone
|
||||||
|
|
||||||
elif [ -f $installPth/.configDone ]; then
|
elif [ -f $installPth/.configDone ]; then
|
||||||
|
# Load config
|
||||||
|
. ./piler.conf
|
||||||
|
|
||||||
select name in Install-Piler Update-Piler
|
select name in Install-Piler Update-Piler
|
||||||
do
|
do
|
||||||
if [ $name = "Install-Piler" ]; then
|
if [ $name = "Install-Piler" ]; then
|
||||||
|
@ -211,6 +223,15 @@ elif [ -f $installPth/.configDone ]; then
|
||||||
echo
|
echo
|
||||||
echo "${blue}Ready for: $name${normal}"
|
echo "${blue}Ready for: $name${normal}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
for fileUpdate in update.sh README.md; do
|
||||||
|
echo "${purple}${HLINE}${HLINE_SMALL}"
|
||||||
|
echo "${purple}****** Download Update $fileUpdate ******"
|
||||||
|
curl -o $installPth/$fileUpdate https://raw.githubusercontent.com/simatec/piler-docker/main/config/$fileUpdate
|
||||||
|
echo "${purple}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
||||||
bash $installPth/update.sh && exit 1
|
bash $installPth/update.sh && exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -437,12 +458,12 @@ echo "${greenBold} Piler install completed successfully"
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
echo "${greenBold}${HLINE}${normal}"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "${greenBold}${HLINE}"
|
echo "${greenBold}${HLINE}${HLINE_SMALL}"
|
||||||
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
||||||
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
||||||
else
|
else
|
||||||
echo "${greenBold}you can start in your Browser with:"
|
echo "${greenBold}you can start in your Browser with:"
|
||||||
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
||||||
fi
|
fi
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
echo "${greenBold}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
echo
|
echo
|
||||||
|
|
38
update.sh
38
update.sh
|
@ -21,6 +21,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HLINE="=================================================================="
|
HLINE="=================================================================="
|
||||||
|
HLINE_SMALL="==============================="
|
||||||
|
|
||||||
BLA_metro=( 0.2 ' ' '= ' '== ' '=== ' ' ===' ' ==' ' =' )
|
BLA_metro=( 0.2 ' ' '= ' '== ' '=== ' ' ===' ' ==' ' =' )
|
||||||
|
|
||||||
|
@ -97,8 +98,8 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
installPth="/opt/piler-docker"
|
installPth=`pwd`
|
||||||
configPth="/opt/piler-docker/config"
|
configPth="$installPth/config"
|
||||||
etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data"
|
etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data"
|
||||||
|
|
||||||
# config load
|
# config load
|
||||||
|
@ -119,17 +120,24 @@ echo "${greenBold} Download Update files for Piler"
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
echo "${greenBold}${HLINE}${normal}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
#cd $configPth
|
# Update Files
|
||||||
|
for ymlUpdate in piler-default.yml piler-ssl.yml; do
|
||||||
|
echo
|
||||||
|
echo "${purple}${HLINE}${HLINE_SMALL}"
|
||||||
|
echo "${purple}****** Download Update $ymlUpdate ******"
|
||||||
|
curl -o $configPth/$ymlUpdate https://raw.githubusercontent.com/simatec/piler-docker/main/config/$ymlUpdate
|
||||||
|
echo "${purple}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
||||||
# Update yml
|
for fileUpdate in install-piler.sh LICENSE piler.conf.example; do
|
||||||
echo
|
echo
|
||||||
echo "${purple}${HLINE}"
|
echo "${purple}${HLINE}${HLINE_SMALL}"
|
||||||
echo "${purple}****** Download Update files piler-default.yml ******"
|
echo "${purple}****** Download Update $fileUpdate ******"
|
||||||
curl -o $configPth/piler-default.yml https://raw.githubusercontent.com/simatec/piler-docker/main/config/piler-default.yml
|
curl -o $installPth/$fileUpdate https://raw.githubusercontent.com/simatec/piler-docker/main/config/$fileUpdate
|
||||||
echo "${purple}****** Download Update files piler-ssl.yml ******"
|
echo "${purple}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
curl -o $configPth/piler-ssl.yml https://raw.githubusercontent.com/simatec/piler-docker/main/config/piler-ssl.yml
|
echo
|
||||||
echo "${purple}${HLINE}${normal}"
|
done
|
||||||
echo
|
|
||||||
|
|
||||||
# old docker stop
|
# old docker stop
|
||||||
cd $installPth
|
cd $installPth
|
||||||
|
@ -309,14 +317,16 @@ echo "${greenBold} Piler Update completed successfully"
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
echo "${greenBold}${HLINE}${normal}"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "${greenBold}${HLINE}"
|
echo "${greenBold}${HLINE}${HLINE_SMALL}"
|
||||||
|
|
||||||
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
||||||
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
||||||
else
|
else
|
||||||
echo "${greenBold}you can start in your Browser with:"
|
echo "${greenBold}you can start in your Browser with:"
|
||||||
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
||||||
fi
|
fi
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
|
||||||
|
echo "${greenBold}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "${blue}${HLINE}"
|
echo "${blue}${HLINE}"
|
||||||
|
|
Loading…
Reference in a new issue