2020-12-17 15:28:55 +01:00
|
|
|
#!/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=3
|
|
|
|
|
2023-03-13 22:12:37 +01:00
|
|
|
ynh_change_url_nginx_config
|
2020-12-17 15:28:55 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SETUP A CRON
|
|
|
|
#=================================================
|
2021-07-10 18:27:01 +02:00
|
|
|
ynh_script_progression --message="Setuping a cron..." --weight=1
|
2020-12-17 15:28:55 +01:00
|
|
|
|
2021-04-28 17:36:41 +02:00
|
|
|
path=$new_path
|
|
|
|
domain=$new_domain
|
2022-06-18 18:16:35 +02:00
|
|
|
|
2021-04-28 17:36:41 +02:00
|
|
|
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
2021-07-10 18:27:01 +02:00
|
|
|
chown root: "/etc/cron.d/$app"
|
|
|
|
chmod 644 "/etc/cron.d/$app"
|
2021-04-28 17:36:41 +02:00
|
|
|
|
2020-12-17 15:28:55 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|