diff --git a/scripts/install b/scripts/install index 957632e..adfe8ba 100644 --- a/scripts/install +++ b/scripts/install @@ -99,6 +99,7 @@ ynh_print_info "Creating a MySQL database..." db_name=$(ynh_sanitize_dbid $app) ynh_app_setting_set $app db_name $db_name ynh_mysql_setup_db $db_name $db_name +ynh_mysql_execute_file_as_root -f="$final_path/phplicensewatcher.sql" -d="$db_name" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -156,6 +157,11 @@ ynh_replace_string "yunobase" "$db_name" "$final_path/config/config.php" ### Then, if write authorization is needed, any access should be given only to directories ### that really need such authorization. + +# Clean Files +rm -f "$final_path/*.sql" +rm -f "$final_path/*.md" + # Set permissions to app files chown -R www-data:www-data $final_path