diff --git a/README.md b/README.md index 75b21fc..d26f158 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ It shall NOT be edited by hand. Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**Shipped version:** 2.0.2~ynh1 +**Shipped version:** 2.0.2~ynh2 ## Screenshots diff --git a/README_es.md b/README_es.md index 56e79f4..8d208c5 100644 --- a/README_es.md +++ b/README_es.md @@ -18,7 +18,7 @@ No se debe editar a mano. Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**Versión actual:** 2.0.2~ynh1 +**Versión actual:** 2.0.2~ynh2 ## Capturas diff --git a/README_eu.md b/README_eu.md index 582c042..7f42c1d 100644 --- a/README_eu.md +++ b/README_eu.md @@ -18,7 +18,7 @@ EZ editatu eskuz. Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**Paketatutako bertsioa:** 2.0.2~ynh1 +**Paketatutako bertsioa:** 2.0.2~ynh2 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index 55c96ce..900f7ff 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main. Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**Version incluse :** 2.0.2~ynh1 +**Version incluse :** 2.0.2~ynh2 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index 45f8dbd..5849469 100644 --- a/README_gl.md +++ b/README_gl.md @@ -18,7 +18,7 @@ NON debe editarse manualmente. Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**Versión proporcionada:** 2.0.2~ynh1 +**Versión proporcionada:** 2.0.2~ynh2 ## Capturas de pantalla diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 15bcd44..afd1e3d 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -18,7 +18,7 @@ Design and prototyping platform meant for cross-domain teams. Non dependent on operating systems, web based and works with open standards (SVG). Penpot invites designers all over the world to fall in love with open source while getting developers excited about the design process in return. -**分发版本:** 2.0.2~ynh1 +**分发版本:** 2.0.2~ynh2 ## 截图 diff --git a/manifest.toml b/manifest.toml index 8adb176..530b71d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -8,7 +8,7 @@ name = "Penpot" description.en = "Design and prototyping platform" description.fr = "Plateforme de conception et de prototypage" -version = "2.0.2~ynh1" +version = "2.0.2~ynh2" maintainers = ["orhtej2"] diff --git a/scripts/install b/scripts/install index bc16eeb..b2a0e8f 100644 --- a/scripts/install +++ b/scripts/install @@ -180,6 +180,9 @@ ynh_use_logrotate --logfile="/var/log/$app/$app-exporter.log" #================================================= # ADD A CONFIGURATION #================================================= +ynh_script_progression --message="Updating database configuration..." +ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" --database=$db_name + ynh_script_progression --message="Adding app's configuration file..." ynh_add_config --template="config.js" --destination="$install_dir/frontend/js/config.js" diff --git a/scripts/restore b/scripts/restore index 5897951..ec39339 100644 --- a/scripts/restore +++ b/scripts/restore @@ -43,6 +43,9 @@ ynh_script_progression --message="Restoring the PostgreSQL database..." --weight ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +ynh_script_progression --message="Updating database configuration..." +ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" --database=$db_name + #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= @@ -83,4 +86,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" --last \ No newline at end of file +ynh_script_progression --message="Restoration completed for $app" --last diff --git a/scripts/upgrade b/scripts/upgrade index 375258c..03ed82e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -175,6 +175,9 @@ ynh_use_logrotate --logfile="/var/log/$app/$app-exporter.log" #================================================= # UPDATE A CONFIG FILE #================================================= +ynh_script_progression --message="Updating database configuration..." +ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" --database=$db_name + ynh_script_progression --message="Updating a configuration file..." ynh_add_config --template="config.js" --destination="$install_dir/frontend/js/config.js"