1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Only copy if file does not exist!

This commit is contained in:
Mo 2023-02-02 13:57:22 +01:00
parent 175859e8e9
commit 7838fcd805

View file

@ -5,7 +5,7 @@
# Use settings template as default settings if the settings does not file already exist # Use settings template as default settings if the settings does not file already exist
SETTINGS_FILE=/volumes/data/settings.ini SETTINGS_FILE=/volumes/data/settings.ini
if [[ -f "$SETTINGS_FILE" ]]; then if [[ ! -f "$SETTINGS_FILE" ]]; then
cp deploy/settings_template.ini "$SETTINGS_FILE" \ cp deploy/settings_template.ini "$SETTINGS_FILE" \
&& echo "Initialized default settings at $SETTINGS_FILE" && echo "Initialized default settings at $SETTINGS_FILE"
fi fi