1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

add services

This commit is contained in:
Kayou 2024-08-01 16:23:38 +02:00 committed by GitHub
parent 0be8e98f08
commit fa82045b91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 59 additions and 2 deletions

View file

@ -50,6 +50,22 @@ chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R ds:ds "$install_dir"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
yunohost service add "$service"
done
#=================================================
# START SERVICES
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
ynh_systemd_action --action=restart --service_name="$service"
done
#=================================================
# NGINX CONFIGURATION
#=================================================

View file

@ -7,6 +7,17 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
if yunohost service status "$service" >/dev/null 2>&1
then
yunohost service remove "$service"
fi
done
#=================================================
# REMOVE ONLYOFFICE
#=================================================
@ -25,8 +36,6 @@ ynh_package_autopurge onlyoffice-documentserver
dpkg --configure -a
apt-key del "E09C A29F 6E17 8040 EF22 B409 8320 CA65 CB2D E8E5" 2>/dev/null
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================

View file

@ -59,6 +59,22 @@ ynh_script_progression --message="Restoring system configurations related to $ap
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
yunohost service add "$service"
done
#=================================================
# START SERVICES
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
ynh_systemd_action --action=restart --service_name="$service"
done
#=================================================
# RELOAD NGINX
#=================================================

View file

@ -55,6 +55,22 @@ chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R ds:ds "$install_dir"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
yunohost service add "$service"
done
#=================================================
# START SERVICES
#=================================================
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
ynh_systemd_action --action=restart --service_name="$service"
done
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================