mirror of
https://github.com/YunoHost-Apps/owncast-emojiwall_ynh.git
synced 2024-09-03 19:56:19 +02:00
Update change_url
This commit is contained in:
parent
4968447e6d
commit
ae433e6fa0
1 changed files with 5 additions and 17 deletions
|
@ -28,24 +28,12 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY CONFIGURATION
|
# MODIFY CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
if [ $change_path -eq 1 ]
|
ynh_add_config --template="../conf/default.json" --destination="$install_dir/config/default.json"
|
||||||
then
|
|
||||||
if [ "$new_path" = "/" ]; then
|
|
||||||
conf_path=""
|
|
||||||
else
|
|
||||||
conf_path=$new_path
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
conf_path=$path
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $change_domain -eq 1 ]
|
chmod 400 "$install_dir/config/default.json"
|
||||||
then
|
chown $app:$app "$install_dir/config/default.json"
|
||||||
domain=$new_domain
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_add_config -t default.json -d "$install_dir/config/default.json"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
@ -54,7 +42,7 @@ ynh_add_config -t default.json -d "$install_dir/config/default.json"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression -m "Starting the systemd service..." -w 1
|
ynh_script_progression -m "Starting the systemd service..." -w 1
|
||||||
|
|
||||||
ynh_systemd_action -a start
|
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Reference in a new issue