mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Fix upgrade
This commit is contained in:
parent
a3351b9aaa
commit
5ec918eb20
2 changed files with 9 additions and 11 deletions
|
@ -86,7 +86,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "website_title",
|
"name": "website_title",
|
||||||
"type": "title",
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Your website's title.",
|
"en": "Your website's title.",
|
||||||
"fr": "Le titre de votre site."
|
"fr": "Le titre de votre site."
|
||||||
|
|
|
@ -17,7 +17,7 @@ ynh_print_info "Loading installation settings..."
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
path_url=$(ynh_app_setting_get $app path_url)
|
path_url=$(ynh_app_setting_get $app path)
|
||||||
admin=$(ynh_app_setting_get $app admin)
|
admin=$(ynh_app_setting_get $app admin)
|
||||||
is_public=$(ynh_app_setting_get $app is_public)
|
is_public=$(ynh_app_setting_get $app is_public)
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
|
@ -79,7 +79,7 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
ynh_print_info "Upgrading source files..."
|
ynh_print_info "Upgrading source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
#ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -92,6 +92,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_print_info "Upgrading dependencies..."
|
||||||
|
|
||||||
#ynh_install_app_dependencies deb1 deb2
|
#ynh_install_app_dependencies deb1 deb2
|
||||||
|
|
||||||
|
@ -114,22 +115,19 @@ ynh_add_fpm_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
#=================================================
|
||||||
# ...
|
# UPGRADE CONCRETE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
pushd $final_path
|
||||||
|
sudo ./concrete/bin/concrete5 c5:update --rerun --verbose --allow-as-root
|
||||||
|
popd
|
||||||
|
|
||||||
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
||||||
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
|
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
|
||||||
#ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE"
|
#ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE"
|
||||||
# Recalculate and store the checksum of the file for the next upgrade.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
#ynh_store_file_checksum "$final_path/CONFIG_FILE"
|
#ynh_store_file_checksum "$final_path/CONFIG_FILE"
|
||||||
|
|
||||||
ynh_setup_source "$final_path"
|
|
||||||
|
|
||||||
pushd $final_path
|
|
||||||
sudo ./concrete/bin/concrete5 c5:update --rerun --verbose --allow-as-root
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue