diff --git a/check_process b/check_process deleted file mode 100644 index 4152b6e..0000000 --- a/check_process +++ /dev/null @@ -1,24 +0,0 @@ -;; Test complet - ; Manifest - domain="domain.tld" - path="/poubelle" - is_public=1 - admin="john" - password="1Strong-Password" - ; Checks - pkg_linter=1 - setup_sub_dir=1 - setup_root=1 - setup_nourl=0 - setup_private=1 - setup_public=1 - upgrade=1 - # 2.0~ynh5 - upgrade=1 from_commit=d83328c3e0d7dbbc317ded2924ac08ba3cc51d3e - backup_restore=1 - multi_instance=0 - port_already_use=0 - change_url=0 -;;; Options -Email= -Notification=none diff --git a/scripts/change_url b/scripts/change_url index e69de29..09f776b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -0,0 +1,32 @@ +#!/bin/bash + +#================================================= +# GENERIC STARTING +#================================================= +# IMPORT GENERIC HELPERS +#================================================= + +source _common.sh +source /usr/share/yunohost/helpers + +#================================================= +# MODIFY URL IN NGINX CONF +#================================================= +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 + +ynh_change_url_nginx_config + +#================================================= +# SPECIFIC MODIFICATIONS +#================================================= + +ynh_add_config --template="../conf/conf-dist.php" --destination="$install_dir/conf.php" + +chmod 400 "$install_dir/conf.php" +chown $app:$app "$install_dir/conf.php" + +#================================================= +# END OF SCRIPT +#================================================= + +ynh_script_progression --message="Change of URL completed for $app" --last