1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diagramsnet_ynh.git synced 2024-09-03 18:26:33 +02:00
diagramsnet_ynh/scripts/upgrade

30 lines
1,020 B
Text
Raw Normal View History

2020-03-11 00:07:10 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression "Upgrading source files..."
2020-03-11 00:07:10 +01:00
ynh_setup_source --dest_dir="$install_dir" --full_replace
2020-03-11 00:07:10 +01:00
2024-06-14 22:06:58 +02:00
# Add "offline" parameter in index.html
# See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-
sed_pattern="s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g"
sed -i "$sed_pattern" "$install_dir/src/main/webapp/index.html"
2020-03-11 00:07:10 +01:00
#=================================================
Upgrade to version 14.4.4 (#15) * Upgrade to version 14.4.0 (#13) * Upgrade to version 12.9.3 * Update README.md Small update on the link's demo. We don't know how long they gonna redirect draw.io to app.diagrams.net * Remove commented code unused * Force http parameter to disable 3rds parties * fix quotting * Documentation * Upgrade version to 12.9.7 * Update README.md (#9) * Upgrade to upstream 13.2.5 * V.14.1.1 (#10) * Testing (#8) * Upgrade to version 12.9.3 * Update README.md Small update on the link's demo. We don't know how long they gonna redirect draw.io to app.diagrams.net * Remove commented code unused * Force http parameter to disable 3rds parties * fix quotting * Documentation * Upgrade version to 12.9.7 * Update README.md (#9) Co-authored-by: quentin-abiterra <49190209+quentin-abiterra@users.noreply.github.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Upgrade to upstream version Co-authored-by: Gofannon <17145502+Gofannon@users.noreply.github.com> Co-authored-by: quentin-abiterra <49190209+quentin-abiterra@users.noreply.github.com> * Upgrade to upstream v14.4.0 (#12) Co-authored-by: quentin-abiterra <49190209+quentin-abiterra@users.noreply.github.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * [fix] migrate to new permission system * [enh] add CI test for new permission system * Upgrade to version 14.4.4 * Cleaning up Co-authored-by: Gofannon <17145502+Gofannon@users.noreply.github.com> Co-authored-by: quentin-abiterra <49190209+quentin-abiterra@users.noreply.github.com>
2021-04-18 16:14:40 +02:00
# NGINX CONFIGURATION
2020-03-11 00:07:10 +01:00
#=================================================
ynh_script_progression "Upgrading NGINX web server configuration..."
2020-03-11 00:07:10 +01:00
ynh_config_add_nginx
2020-03-11 00:07:10 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Upgrade of $app completed"