1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Add change_url step

This commit is contained in:
Yalh 2019-01-26 01:06:29 +01:00
parent 58c0b6e96c
commit 02fefcbd26
3 changed files with 17 additions and 4 deletions

View file

@ -21,8 +21,8 @@
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
incorrect_path=1 incorrect_path=1
port_already_use=0 port_already_use=1
change_url=0 change_url=1
;;; Levels ;;; Levels
Level 1=auto Level 1=auto
Level 2=auto Level 2=auto

View file

@ -93,6 +93,21 @@ fi
# ... # ...
#================================================= #=================================================
# Stop writefreely for modification
yunohost service stop $app
ynh_replace_string "$old_domain" "$new_domain" "$final_path/$app/.env"
# Start writefreely after modification
yunohost service start $app
### 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.
ynh_backup_if_checksum_is_different "$final_path/$app/.env"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum "$final_path/$app/.env"
ynh_store_file_checksum "$final_path/$app/.env"
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION
#================================================= #=================================================

View file

@ -68,8 +68,6 @@ ynh_abort_if_errors
# Stop Plume for upgrade # Stop Plume for upgrade
yunohost service stop "$app" yunohost service stop "$app"
#================================================= #=================================================
# CHECK THE PATH # CHECK THE PATH
#================================================= #=================================================