diff --git a/check_process b/check_process index 4d25a29..fd2d13d 100644 --- a/check_process +++ b/check_process @@ -19,7 +19,7 @@ multi_instance=1 incorrect_path=1 port_already_use=0 - change_url=0 + change_url=1 ;;; Levels Level 1=auto Level 2=auto diff --git a/scripts/change_url b/scripts/change_url index 20f68b0..0bff0b1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -83,8 +83,16 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= -# ... +# UPDATE DRUSH ALIAS #================================================= +ynh_print_info --message="Updating Drush alias..." + +cp -f "../conf/yoursite.aliases.drushrc.php" "$final_path/.drush/$app.aliases.drushrc.php" + +ynh_replace_string "__FINALPATH__" "$final_path" "$final_path/.drush/$app.aliases.drushrc.php" +ynh_replace_string "__APP__" "$app" "$final_path/.drush/$app.aliases.drushrc.php" +ynh_replace_string "__DOMAIN__" "$new_domain" "$final_path/.drush/$app.aliases.drushrc.php" +ynh_replace_string "__PATH_URL__" "$new_path" "$final_path/.drush/$app.aliases.drushrc.php" #================================================= # GENERIC FINALISATION