mirror of
https://github.com/YunoHost-Apps/framaforms_ynh.git
synced 2024-09-03 18:36:12 +02:00
Change upstream to Yakforms, handle migration.
This commit is contained in:
parent
ec4b2a6541
commit
75de5c6b42
5 changed files with 40 additions and 6 deletions
|
@ -22,8 +22,8 @@ See this [article](https://framablog.org/2016/10/05/framaforms-noffrez-plus-les-
|
|||
**Shipped version:** 1.0.3~ynh4
|
||||
## Documentation and resources
|
||||
|
||||
- Official app website: <https://framaforms.org>
|
||||
- Upstream app code repository: <https://framagit.org/framasoft/framaforms>
|
||||
- Official app website: <https://yakforms.org>
|
||||
- Upstream app code repository: <https://framagit.org/yakforms/yakforms>
|
||||
- YunoHost Store: <https://apps.yunohost.org/app/framaforms>
|
||||
- Report a bug: <https://github.com/YunoHost-Apps/framaforms_ynh/issues>
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@ See this [article](https://framablog.org/2016/10/05/framaforms-noffrez-plus-les-
|
|||
**Version incluse :** 1.0.3~ynh4
|
||||
## Documentations et ressources
|
||||
|
||||
- Site officiel de l’app : <https://framaforms.org>
|
||||
- Dépôt de code officiel de l’app : <https://framagit.org/framasoft/framaforms>
|
||||
- Site officiel de l’app : <https://yakforms.org>
|
||||
- Dépôt de code officiel de l’app : <https://framagit.org/yakforms/yakforms>
|
||||
- YunoHost Store : <https://apps.yunohost.org/app/framaforms>
|
||||
- Signaler un bug : <https://github.com/YunoHost-Apps/framaforms_ynh/issues>
|
||||
|
||||
|
|
0
conf/extra_php-fpm.conf
Normal file
0
conf/extra_php-fpm.conf
Normal file
|
@ -13,8 +13,8 @@ maintainers = []
|
|||
|
||||
[upstream]
|
||||
license = "GPL-2.0-only"
|
||||
website = "https://framaforms.org"
|
||||
code = "https://framagit.org/framasoft/framaforms"
|
||||
website = "https://yakforms.org"
|
||||
code = "https://framagit.org/yakforms/yakforms"
|
||||
fund = "https://soutenir.framasoft.org"
|
||||
|
||||
[integration]
|
||||
|
|
|
@ -12,6 +12,25 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
# ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
#=================================================
|
||||
# Framaforms 2 Yakforms Backup
|
||||
#=================================================
|
||||
upgrade_to_yakforms=true
|
||||
|
||||
if [ "$upgrade_to_yakforms" = false ]; then
|
||||
pushd "$install_dir"
|
||||
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" pm-uninstall framaforms
|
||||
_ynh_exec_with_drush_php drush "@$app" dis framaforms_share_results
|
||||
_ynh_exec_with_drush_php drush "@$app" pm-uninstall framaforms_share_results
|
||||
_ynh_exec_with_drush_php drush "@$app" dis framaforms_public_results
|
||||
_ynh_exec_with_drush_php drush "@$app" pm-uninstall framaforms_public_results
|
||||
_ynh_exec_with_drush_php drush "@$app" dis framaforms_spam
|
||||
_ynh_exec_with_drush_php drush "@$app" pm-uninstall framaforms_spam
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -33,6 +52,21 @@ ynh_script_progression --message="Upgrading Composer..." --weight=3
|
|||
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$install_dir/.composer"
|
||||
|
||||
#=================================================
|
||||
# Framaforms 2 Yakforms Restore
|
||||
#=================================================
|
||||
|
||||
if [ "$upgrade_to_yakforms" = true ]; then
|
||||
pushd "$install_dir"
|
||||
_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_public_results
|
||||
_ynh_exec_with_drush_php drush "@$app" dis yakforms_spam
|
||||
ynh_exec_as "$app" env "PATH=$PATH" "php$phpversion" framaforms2yakforms.php restore
|
||||
ynh_exec_as "$app" env "PATH=$PATH" "php$phpversion" framaforms2yakforms.php clean
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DRUPAL
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue