diff --git a/scripts/install b/scripts/install index 19d5cf8..0735709 100755 --- a/scripts/install +++ b/scripts/install @@ -138,7 +138,7 @@ ynh_store_file_checksum "$final_path/config.yml" # Set permissions to app files chown -R root:$app $final_path -mkdir $final_path/data +mkdir -p $final_path/data chown -R $app: $final_path/data/ chmod o-rwx $final_path/ -R diff --git a/scripts/restore b/scripts/restore index 0f8e3c0..2c0ed46 100755 --- a/scripts/restore +++ b/scripts/restore @@ -77,7 +77,7 @@ ynh_system_user_create $app # Restore permissions on app files chown -R root:$app $final_path -mkdir $final_path/data +mkdir -p $final_path/data chown -R $app: $final_path/data/ chmod o-rwx $final_path/ -R