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:
parent
175859e8e9
commit
7838fcd805
1 changed files with 1 additions and 1 deletions
2
init.sh
2
init.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue