(simatec) update fix

This commit is contained in:
simatec 2024-06-05 23:12:45 +02:00
parent ac5dabf202
commit f4fbed8f3c
2 changed files with 8 additions and 2 deletions

View file

@ -213,8 +213,8 @@ if [ ! -f $installPth/.configDone ]; then
while true; do
read -ep "If Use automatic import to 5 minutes interval (yes/no)? / Y|N (Default: no): " jn
case $jn in
[Yy]* ) AUTO_IMPORT=true; break;;
[Nn]* ) AUTO_IMPORT=false; break;;
[Yy]* ) sed -i 's/AUTO_IMPORT=.*/AUTO_IMPORT=true/g' ./piler.conf; break;;
[Nn]* ) sed -i 's/AUTO_IMPORT=.*/AUTO_IMPORT=false/g' ./piler.conf; break;;
* ) echo -e "${redBold} Please confirm with Y or N.${normal}";;
esac
done
@ -435,6 +435,8 @@ cat >> $cronPth/piler <<EOF
### Piler import added by Piler-Installer
*/5 * * * * /usr/libexec/piler/import.sh
EOF
chown 1000:crontab $cronPth/piler
fi
if [ "$USE_MAILCOW" = true ]; then

View file

@ -63,6 +63,10 @@ MAILCOW_APIKEY="your_Mailcow_API-Key"
MAILCOW_HOST="mail.example.com"
# Import Interval Settings
AUTO_IMPORT=false
# ------ Container Versions --------
# Piler Version