1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00
This commit is contained in:
Éric Gaspar 2023-11-14 10:46:55 +01:00
parent e29152fecc
commit 58ada2164d
3 changed files with 2 additions and 8 deletions

View file

@ -22,7 +22,6 @@ mkdir -p /etc/coolwsd
ynh_add_config --template="coolwsd.xml" --destination="/etc/coolwsd/coolwsd.xml" ynh_add_config --template="coolwsd.xml" --destination="/etc/coolwsd/coolwsd.xml"
chmod 644 /etc/coolwsd/coolwsd.xml chmod 644 /etc/coolwsd/coolwsd.xml
chown $app:$app "/etc/coolwsd/coolwsd.xml"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -32,11 +31,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=3
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add "coolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log" yunohost service add "coolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log"
#================================================= #=================================================

View file

@ -19,7 +19,7 @@ source /usr/share/yunohost/helpers
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/coolwsd/coolwsd.xml" ynh_restore_file --origin_path="/etc/coolwsd/coolwsd.xml"
chmod 640 "/etc/coolwsd/coolwsd.xml" chmod 644 "/etc/coolwsd/coolwsd.xml"
yunohost service add "coolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log" yunohost service add "coolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log"

View file

@ -55,7 +55,7 @@ ynh_script_progression --message="Upgrading config file..." --weight=2
ynh_add_config --template="coolwsd.xml" --destination="/etc/coolwsd/coolwsd.xml" ynh_add_config --template="coolwsd.xml" --destination="/etc/coolwsd/coolwsd.xml"
chown cool: "/etc/coolwsd/coolwsd.xml" chown cool: "/etc/coolwsd/coolwsd.xml"
chmod 640 "/etc/coolwsd/coolwsd.xml" chmod 644 "/etc/coolwsd/coolwsd.xml"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE