diff --git a/scripts/_common.sh b/scripts/_common.sh index ee17190..da8bff0 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,6 +15,9 @@ install_dependance() { } config_sogo() { + # Avoid if the directory don't exist + mkdir -p /etc/$app + ynh_backup_if_checksum_is_different /etc/$app/sogo.conf cp ../conf/sogo.conf /etc/$app/sogo.conf @@ -78,4 +81,4 @@ set_permission() { chmod u=rwX,g=rwX,o= -R /etc/$app chown -R $app:$app /var/log/$app chmod u=rwX,g=rwX,o= -R /var/log/$app -} \ No newline at end of file +}