1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00

fix upgrade

This commit is contained in:
Salamandar 2024-07-14 17:20:14 +02:00
parent 3fe655aba5
commit 29fef6d0a7

View file

@ -23,7 +23,7 @@ else
fi fi
if [ "$upgrade_to_yakforms" = true ]; then if [ "$upgrade_to_yakforms" = true ]; then
pushd "$install_dir" pushd "$install_dir/app"
ynh_setup_source --source_id="migration_script" --dest_dir="$install_dir/app" ynh_setup_source --source_id="migration_script" --dest_dir="$install_dir/app"
ynh_exec_as "$app" env "PATH=$PATH" "php$phpversion" framaforms2yakforms.php backup ynh_exec_as "$app" env "PATH=$PATH" "php$phpversion" framaforms2yakforms.php backup
_ynh_exec_with_drush_php drush "@$app" dis framaforms _ynh_exec_with_drush_php drush "@$app" dis framaforms
@ -63,7 +63,7 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$install_dir/.compose
#================================================= #=================================================
if [ "$upgrade_to_yakforms" = true ]; then if [ "$upgrade_to_yakforms" = true ]; then
pushd "$install_dir" pushd "$install_dir/app"
_ynh_exec_with_drush_php drush "@$app" en yakforms _ynh_exec_with_drush_php drush "@$app" en yakforms
_ynh_exec_with_drush_php drush "@$app" dis yakforms_share_results _ynh_exec_with_drush_php drush "@$app" dis yakforms_share_results
_ynh_exec_with_drush_php drush "@$app" dis yakforms_public_results _ynh_exec_with_drush_php drush "@$app" dis yakforms_public_results
@ -83,7 +83,7 @@ ynh_backup_if_checksum_is_different --file="$install_dir/app/sites/default/setti
# Chown from composer/drush install # Chown from composer/drush install
chown -R "$app:www-data" "$install_dir" chown -R "$app:www-data" "$install_dir"
pushd "$install_dir" pushd "$install_dir/app"
_ynh_exec_with_drush_php drush "@$app" variable-set --exact maintenance_mode 1 _ynh_exec_with_drush_php drush "@$app" variable-set --exact maintenance_mode 1
_ynh_exec_with_drush_php drush "@$app" cache-clear all _ynh_exec_with_drush_php drush "@$app" cache-clear all
# _ynh_exec_with_drush_php drush "@$app" pm-update -y drupal # _ynh_exec_with_drush_php drush "@$app" pm-update -y drupal