mirror of
https://github.com/YunoHost-Apps/dato_ynh.git
synced 2024-09-03 18:16:33 +02:00
Make sure not to have an error if config folder already exist.
This commit is contained in:
parent
3e43328c4c
commit
d0300fa740
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ nodejs_version=12
|
|||
|
||||
dato_setup_config_files() {
|
||||
|
||||
# create config directory
|
||||
mkdir "$final_path/config/"
|
||||
# create config directory (if it doesn't exist yet)
|
||||
[ -d "$final_path/config/" ] || mkdir "$final_path/config/"
|
||||
|
||||
# setup public dato config
|
||||
ynh_add_config --template="../conf/public.js" --destination="$final_path/config/public.js"
|
||||
|
|
Loading…
Add table
Reference in a new issue