diff --git a/conf/app.src b/conf/app.src deleted file mode 100644 index ae09b02..0000000 --- a/conf/app.src +++ /dev/null @@ -1,5 +0,0 @@ -SOURCE_URL=https://github.com/Dolibarr/dolibarr/archive/16.0.0.tar.gz -SOURCE_SUM=76a642d74cd3e4fe86fdeccffacd0fa2b22a398dc03e7ad92edb34d033b17b2f -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=tar.gz -SOURCE_IN_SUBDIR=true diff --git a/scripts/_common.sh b/scripts/_common.sh index b191aff..2d00d44 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,20 +3,24 @@ #================================================= # COMMON VARIABLES #================================================= -YNH_PHP_VERSION="7.3" +YNH_PHP_VERSION="7.4" -extra_php_dependencies="php${YNH_PHP_VERSION}-mysql \ - php${YNH_PHP_VERSION}-imagick \ - php${YNH_PHP_VERSION}-gd \ - php${YNH_PHP_VERSION}-mbstring \ - php${YNH_PHP_VERSION}-soap \ - php${YNH_PHP_VERSION}-curl \ - php${YNH_PHP_VERSION}-intl \ - php${YNH_PHP_VERSION}-opcache \ - php${YNH_PHP_VERSION}-calendar \ - php${YNH_PHP_VERSION}-zip \ - php${YNH_PHP_VERSION}-xml \ - php${YNH_PHP_VERSION}-fileinfo" +php_dependencies="php$YNH_PHP_VERSION-mysql \ + php$YNH_PHP_VERSION-imagick \ + php$YNH_PHP_VERSION-gd \ + php$YNH_PHP_VERSION-mbstring \ + php$YNH_PHP_VERSION-soap \ + php$YNH_PHP_VERSION-curl \ + php$YNH_PHP_VERSION-intl \ + php$YNH_PHP_VERSION-opcache \ + php$YNH_PHP_VERSION-calendar \ + php$YNH_PHP_VERSION-zip \ + php$YNH_PHP_VERSION-xml \ + php$YNH_PHP_VERSION-fileinfo \ + php$YNH_PHP_VERSION-imap" + +# dependencies used by the app (must be on a single line) +pkg_dependencies="$php_dependencies" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 8143e2a..996d4a3 100644 --- a/scripts/install +++ b/scripts/install @@ -51,6 +51,15 @@ ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=member --value=$member ynh_app_setting_set --app=$app --key=version --value=$(ynh_app_upstream_version "../manifest.json") +#================================================= +# STANDARD MODIFICATIONS +#================================================= +# INSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Installing dependencies..." --weight=1 + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # CREATE DEDICATED USER #================================================= @@ -59,8 +68,6 @@ ynh_script_progression --message="Configuring system user..." --weight=2 # Create a system user ynh_system_user_create --username=$app --home_dir="$final_path" -#================================================= -# STANDARD MODIFICATIONS #================================================= # CREATE A MYSQL DATABASE #================================================= @@ -91,11 +98,11 @@ touch $final_path/htdocs/conf/conf.php #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring PHP-FPM and install dependencies..." --weight=2 +ynh_script_progression --message="Configuring PHP-FPM" --weight=2 # Create a dedicated php-fpm config -ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_dependencies" -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint +phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion) #================================================= # NGINX CONFIGURATION @@ -114,14 +121,6 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/install.forced.php" --destination="$final_path/htdocs/install/install.forced.php" -#================================================= -# CONFIGURE THE HOOK FILE FOR USER CREATE -#================================================= -fhook=../hooks/post_user_create -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$fhook" -ynh_replace_string --match_string="__MEMBER__" --replace_string="$member" --target_file="$fhook" -ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$fhook" - #================================================= # SETUP APPLICATION WITH CURL #================================================= @@ -129,10 +128,10 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" # Set right permissions for curl install chown -R $app: "$final_path" -# Set the app as temporarily public for curl call -ynh_script_progression --message="Configuring permissions..." --weight=1 # Set the app as temporarily public for cURL call -ynh_permission_update --permission="main" --add="visitors" +if ! ynh_permission_has_user --permission "main" --user="visitors"; then + ynh_permission_update --permission="main" --add="visitors" +fi # Reload NGINX ynh_systemd_action --service_name=nginx --action=reload @@ -190,10 +189,10 @@ ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < .. # Populate the database with YNH users. ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap_user.sql -if php $final_path/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then +if php$phpversion $final_path/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then ynh_print_info --message="LDAP user update ok" else - ynh_print_warn --message="LDAP user update ended with error" + ynh_print_info --message="LDAP user update ended with error" fi # Remove the public access @@ -207,6 +206,14 @@ ynh_permission_update --permission="main" --remove="visitors" ynh_script_progression --message="configuring config file" --weight=1 ynh_replace_string --match_string="dolibarr_main_authentication='dolibarr'" --replace_string="dolibarr_main_authentication='http'" --target_file="$final_path/htdocs/conf/conf.php" +#================================================= +# CONFIGURE THE HOOK FILE FOR USER CREATE +#================================================= +fhook=../hooks/post_user_create +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$fhook" +ynh_replace_string --match_string="__MEMBER__" --replace_string="$member" --target_file="$fhook" +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$fhook" + #================================================= # STORE THE CONFIG FILE CHECKSUM #================================================= @@ -219,6 +226,7 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php" #================================================= # SECURE FILES AND DIRECTORIES #================================================= +ynh_script_progression --message="Configuring permissions..." --weight=1 # Set permissions on app files chmod 750 "$final_path" diff --git a/scripts/remove b/scripts/remove index fb9a1fe..07f811b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -24,6 +24,13 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # STANDARD REMOVE +# REMOVE DEPENDENCIES +#================================================= +ynh_script_progression --message="Removing dependencies..." --weight=1 + +# Remove metapackage and its dependencies +ynh_remove_app_dependencies + #================================================= # REMOVE THE MYSQL DATABASE #================================================= diff --git a/scripts/restore b/scripts/restore index 7cae876..115f3d0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -46,10 +46,12 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS #================================================= -# RESTORE THE NGINX CONFIGURATION +# RECREATE THE DEDICATED USER #================================================= +ynh_script_progression --message="Recreating the dedicated system user..." --weight=3 -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +# Create the dedicated user (if not existing) +ynh_system_user_create --username=$app #================================================= # RESTORE THE APP MAIN DIR @@ -59,12 +61,14 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$final_path" #================================================= -# RECREATE THE DEDICATED USER +# SPECIFIC RESTORATION #================================================= -ynh_script_progression --message="Recreating the dedicated system user..." --weight=3 +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=1 -# Create the dedicated user (if not existing) -ynh_system_user_create --username=$app +# Define and install dependencies +ynh_install_app_dependencies $pkg_dependencies #================================================= # RESTORE THE PHP-FPM CONFIGURATION @@ -75,11 +79,14 @@ ynh_print_info --message="Reconfiguring PHP-FPM..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # Recreate a dedicated php-fpm config -ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$phpversion --package="$extra_php_dependencies" - +ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint #================================================= -# SPECIFIC RESTORATION +# RESTORE THE NGINX CONFIGURATION +#================================================= + +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + #================================================= # RESTORE THE MYSQL DATABASE #================================================= @@ -92,12 +99,14 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ #================================================= # RESTORE THE LOGROTATE CONFIGURATION #================================================= +ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # SECURE FILES AND DIRECTORIES #================================================= +ynh_script_progression --message="Configuring permissions..." --weight=1 # Set permissions on app files chmod 750 "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index c340445..f155c15 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,6 +51,8 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# STANDARD UPGRADE STEPS #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -87,10 +89,16 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +# Create a permission if needed if ! ynh_permission_exists --permission "public_space"; then ynh_permission_create --permission "public_space" --url "/public/" --allowed "visitors" fi +# Delete existing ini configuration file (backward compatibility) +if [ -f /etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini ]; then + ynh_secure_remove --file=/etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini +fi + #================================================= # CREATE DEDICATED USER #================================================= @@ -100,24 +108,26 @@ ynh_script_progression --message="Making sure dedicated system user exists..." - ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= -# STANDARD UPGRADE STEPS -#================================================= -# DOWNLOAD, CHECK AND UNPACK SOURCE +# UPGRADE DEPENDENCIES #================================================= +ynh_script_progression --message="Upgrading dependencies..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=70 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" -fi +ynh_install_app_dependencies $pkg_dependencies #================================================= # NGINX CONFIGURATION #================================================= ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 +ynh_backup_if_checksum_is_different --file="/etc/nginx/conf.d/$domain.d/$app.conf" + +# Delete current NGINX configuration to be able to check if .well-known is already served. +ynh_remove_nginx_config +ynh_app_setting_delete --app=$app --key="checksum__etc_nginx_conf.d_$domain.d_$app.conf" + +# Wait untils NGINX has fully reloaded +ynh_systemd_action --service_name=nginx --action=reload --line_match="Reloaded" --log_path="systemd" + # Create a dedicated nginx config ynh_add_nginx_config @@ -129,86 +139,143 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # If php has changed, remove the old fpm config file # if [ "$phpversion" != $YNH_PHP_VERSION ] # then -# ynh_backup_if_checksum_is_different --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" -# ynh_secure_remove --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" -# if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then -# ynh_secure_remove --file="/etc/php/$phpversion/fpm/conf.d/20-$app.ini" -# fi -# ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload + # ynh_backup_if_checksum_is_different --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" + # ynh_secure_remove --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" + # if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then + # ynh_secure_remove --file="/etc/php/$phpversion/fpm/conf.d/20-$app.ini" + # fi + # ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload -# phpversion="$YNH_PHP_VERSION" + # phpversion="$YNH_PHP_VERSION" # fi # Recreate a dedicated PHP-FPM config -ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies" +ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # SPECIFIC UPGRADE #================================================= -# LAUNCH UPGRADE +# MAKE SEQUENTIAL UPGRADES FROM EACH MAJOR +# VERSION TO THE NEXT ONE #================================================= - if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading app from $current_version to $update_version" --weight=3 + ynh_script_progression --message="Upgrading source files..." --weight=60 - chown -R $app: "$final_path" + # Load the last available version + source upgrade.d/upgrade.last.sh + last_version=$next_version - # Remove the lock if it exists - lock=$final_path/documents/install.lock - if [ -f $lock ] - then - ynh_secure_remove $lock - fi + last_major_version=${last_version%%.*} + + # While the current version is not the last version, do an upgrade + while [ "$last_version" != "$current_version" ] + do - mkdir -p /var/log/$app/ - - # Upgrade with CURL - - # Set the app as temporarily public for cURL call - ynh_permission_update --permission="main" --add="visitors" + # The major version is the first part of the version number + current_major_version=${current_version%%.*} + + if [ ! -f upgrade.d/upgrade.$current_major_version.sh ]; then + source upgrade.d/upgrade.last.sh + else + source upgrade.d/upgrade.$current_major_version.sh + fi - pushd $final_path/htdocs/install/ - if php$phpversion upgrade.php $current_version $update_version > /var/log/$app/upgrade.html; then - ynh_print_info --message="Step 1 upgrading ended successfully" - else - ynh_print_warn --message="Step 1 upgrading ended with error" - fi + # If the current version has the same major version than the next one, + # then it's the last upgrade to do + # We also cover the case where the last version is the first of the current major version series + # (e.g. 20.0.0 is the latest version) + if [[ ("$last_major_version" -eq "$current_major_version") || ( ("$last_major_version" -eq "$((current_major_version+1))") && ("$next_version" == "$last_version") ) ]]; then + current_major_version=last + fi + + # Load the value for this version + source upgrade.d/upgrade.$current_major_version.sh - ynh_exec_fully_quiet sleep 5 - - if php$phpversion upgrade2.php $current_version $update_version > /var/log/$app/upgrade2.html; then - ynh_print_info --message="Step 2 upgrading ended successfully" - else - ynh_print_warn --message="Step 2 upgrading ended with error" - fi - - ynh_exec_fully_quiet sleep 5 - - charset=$(mysql -ss -N -e "SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = '$db_name'") - if [ "$charset" != "utf8" ] - then - ynh_script_progression --message="Changing Database charset to utf8" --weight=5 + ynh_print_info --message="Upgrading app from $current_version to $next_version" - ynh_mysql_execute_as_root --database=$db_name --sql="ALTER DATABASE $db_name charset=utf8" - - ynh_local_curl "/install/repair.php" \ - "force_utf8_on_tables=confirmed" > /var/log/$app/repair.html - fi + # Create an app.src for this version of Dolibarr + cat > ../conf/app.src << EOF +SOURCE_URL=https://github.com/Dolibarr/dolibarr/archive/$next_version.tar.gz +SOURCE_SUM=$dolibarr_source_sha256 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.bz2 +SOURCE_IN_SUBDIR=true +EOF - ynh_exec_fully_quiet sleep 5 - - if php$phpversion step5.php $current_version $update_version > /var/log/$app/upgrade3.html; then - ynh_print_info --message="Step 3 upgrading ended successfully" - else - ynh_print_warn --message="Step 3 upgrading ended with error" - fi - ynh_app_setting_set --app=$app --key=version --value=$update_version + # Download, check integrity, uncompress and patch the source from app.src + ynh_setup_source --dest_dir="$final_path" - popd - - ynh_permission_update --permission="main" --remove="visitors" + chown -R $app: "$final_path" + + # Remove the lock if it exists + lock=$final_path/documents/install.lock + if [ -f $lock ] + then + ynh_secure_remove $lock + fi + + mkdir -p /var/log/$app/ + + # Upgrade with CURL + + # Set the app as temporarily public for cURL call + if ! ynh_permission_has_user --permission "main" --user="visitors"; then + ynh_permission_update --permission="main" --add="visitors" + fi + + + charset=$(mysql -ss -N -e "SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = '$db_name'") + if [ "$charset" != "utf8" ] + then + ynh_print_info --message="Changing Database charset to utf8" + + ynh_mysql_execute_as_root --database=$db_name --sql="ALTER DATABASE $db_name charset=utf8" + + ynh_local_curl "/install/repair.php" \ + "force_utf8_on_tables=confirmed" > /var/log/$app/repair.html + fi + + ynh_exec_fully_quiet sleep 5 + + pushd $final_path/htdocs/install/ + + if php$phpversion upgrade.php $current_version $next_version > /var/log/$app/upgrade.html; then + ynh_print_info --message="Step 1 upgrading ended successfully" + else + ynh_die --message="Step 1 upgrading ended with error" + fi + + ynh_exec_fully_quiet sleep 5 + + if php$phpversion upgrade2.php $current_version $next_version > /var/log/$app/upgrade2.html; then + ynh_print_info --message="Step 2 upgrading ended successfully" + else + ynh_die --message="Step 2 upgrading ended with error" + fi + + ynh_exec_fully_quiet sleep 5 + + if php$phpversion step5.php $current_version $next_version > /var/log/$app/upgrade3.html; then + ynh_print_info --message="Step 3 upgrading ended successfully" + else + ynh_die --message="Step 3 upgrading ended with error" + fi + + + popd + + ynh_permission_update --permission="main" --remove="visitors" + + # Get the new current version number + current_version=$next_version + current_major_version=${current_version%%.*} + + done + + ynh_app_setting_set --app=$app --key=version --value=$update_version fi #================================================= @@ -228,21 +295,12 @@ ynh_script_progression --message="Upgrading logrotate configuration..." --weight # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append -#================================================= -# UPDATE THE HOOK FILE FOR USER CREATE -#================================================= - -# Set system group in hooks -fhook=../hooks/post_user_create -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$fhook" -ynh_replace_string --match_string="__MEMBER__" --replace_string="$member" --target_file="$fhook" -ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$fhook" - #================================================= # GENERIC FINALIZATION #================================================= # SECURE FILES AND DIRECTORIES #================================================= +ynh_script_progression --message="Configuring permissions..." --weight=1 # Set permissions on app files chmod 750 "$final_path" @@ -256,7 +314,7 @@ chmod go-w $datadir #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." --weight=1 +ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/upgrade.d/upgrade.10.sh b/scripts/upgrade.d/upgrade.10.sh new file mode 100644 index 0000000..4099105 --- /dev/null +++ b/scripts/upgrade.d/upgrade.10.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="11.0.5" + +# Dolibarr tarball checksum +dolibarr_source_sha256="6f51435a4ffe576e836bf6449d900de9a56016f09591322cb2ba47a07c97679d" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.11.sh b/scripts/upgrade.d/upgrade.11.sh new file mode 100644 index 0000000..a07f708 --- /dev/null +++ b/scripts/upgrade.d/upgrade.11.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="12.0.5" + +# Dolibarr tarball checksum +dolibarr_source_sha256="ba9b636b95caeba72106ae6a61f25654e113817759e69a6a30ed510882d0f309" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.12.sh b/scripts/upgrade.d/upgrade.12.sh new file mode 100644 index 0000000..0dd40d7 --- /dev/null +++ b/scripts/upgrade.d/upgrade.12.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="13.0.5" + +# Dolibarr tarball checksum +dolibarr_source_sha256="08ec08dc5093d614361f273237f5aaf8d70e63d764c2fa8d7f3f68a1485156d0" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.13.sh b/scripts/upgrade.d/upgrade.13.sh new file mode 100644 index 0000000..26366cd --- /dev/null +++ b/scripts/upgrade.d/upgrade.13.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="14.0.5" + +# Dolibarr tarball checksum +dolibarr_source_sha256="31f4c934e484a9582d8867e4170f1f1acd8c41628b059370a6a449eb6e94ae75" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.14.sh b/scripts/upgrade.d/upgrade.14.sh new file mode 100644 index 0000000..e22383d --- /dev/null +++ b/scripts/upgrade.d/upgrade.14.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="15.0.3" + +# Dolibarr tarball checksum +dolibarr_source_sha256="b145a38f56c44b166721d64909fb12408c6d10d08fcf74d2c00418a60201cc9d" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.15.sh b/scripts/upgrade.d/upgrade.15.sh new file mode 100644 index 0000000..d3ff37a --- /dev/null +++ b/scripts/upgrade.d/upgrade.15.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="16.0.0" + +# Dolibarr tarball checksum +dolibarr_source_sha256="76a642d74cd3e4fe86fdeccffacd0fa2b22a398dc03e7ad92edb34d033b17b2f" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.9.sh b/scripts/upgrade.d/upgrade.9.sh new file mode 100644 index 0000000..0ff52ac --- /dev/null +++ b/scripts/upgrade.d/upgrade.9.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="10.0.7" + +# Dolibarr tarball checksum +dolibarr_source_sha256="6efc230f400a7b7152a0e4b9ba02a780f38b869b4aebd2bc28883268270ef871" \ No newline at end of file diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh new file mode 100644 index 0000000..d3ff37a --- /dev/null +++ b/scripts/upgrade.d/upgrade.last.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Target version of the Dolibarr update +next_version="16.0.0" + +# Dolibarr tarball checksum +dolibarr_source_sha256="76a642d74cd3e4fe86fdeccffacd0fa2b22a398dc03e7ad92edb34d033b17b2f" \ No newline at end of file