diff --git a/scripts/install b/scripts/install index 3bfddfc..e832cb3 100755 --- a/scripts/install +++ b/scripts/install @@ -101,13 +101,6 @@ ynh_print_info "Configuring php-fpm..." # Create a dedicated php-fpm config ynh_add_fpm_config -#================================================= -# SET RIGHT PERMISSION FOR APP -#================================================= - -chown -R $app: $final_path -sudo chmod -R 700 $final_path/data - #================================================= # MODIFY A CONFIG FILE #================================================= @@ -138,6 +131,13 @@ ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/admin.sql" # Calculate and store the config file checksum into the app settings ynh_store_file_checksum "$final_path/data/config.ini.php" +#================================================= +# SET RIGHT PERMISSION FOR APP +#================================================= + +chown -R $app: $final_path +sudo chmod -R 700 $final_path/data + #================================================= # SETUP SSOWAT #=================================================