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
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
if [ $change_path -eq 1 ]
|
||||
then
|
||||
if [ "$new_path" = "/" ]; then
|
||||
conf_path=""
|
||||
else
|
||||
conf_path=$new_path
|
||||
fi
|
||||
else
|
||||
conf_path=$path
|
||||
fi
|
||||
ynh_add_config --template="../conf/default.json" --destination="$install_dir/config/default.json"
|
||||
|
||||
if [ $change_domain -eq 1 ]
|
||||
then
|
||||
domain=$new_domain
|
||||
fi
|
||||
|
||||
ynh_add_config -t default.json -d "$install_dir/config/default.json"
|
||||
chmod 400 "$install_dir/config/default.json"
|
||||
chown $app:$app "$install_dir/config/default.json"
|
||||
|
||||
#=================================================
|
||||
# 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_systemd_action -a start
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
Loading…
Reference in a new issue