1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git synced 2024-09-03 18:36:09 +02:00
This commit is contained in:
ericgaspar 2020-09-05 19:29:58 +02:00
parent 33323fe307
commit ef3531aae5
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 9 additions and 9 deletions

View file

@ -1,20 +1,20 @@
[add_remove_abiword] [add_remove_abiword]
name = "Install/remove abiword" name = "Install/remove AbiWord"
command = "/bin/bash scripts/actions/add_remove_abiword" command = "/bin/bash scripts/actions/add_remove_abiword"
# user = "root" # optional # user = "root" # optional
# cwd = "/" # optional # cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional # accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0] accepted_return_codes = [0]
description = "Install or remove abiword" description = "Install or remove AbiWord"
[add_remove_libreoffice] [add_remove_libreoffice]
name = "Install/remove libreoffice" name = "Install/remove LibreOffice"
command = "/bin/bash scripts/actions/add_remove_libreoffice" command = "/bin/bash scripts/actions/add_remove_libreoffice"
# user = "root" # optional # user = "root" # optional
# cwd = "/" # optional # cwd = "/" # optional
# accepted_return_codes = [0, 1, 2, 3] # optional # accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0] accepted_return_codes = [0]
description = "Install or remove libreoffice" description = "Install or remove LibreOffice"
[list_all_pads] [list_all_pads]
name = "List all existing pads" name = "List all existing pads"
@ -46,5 +46,5 @@ description = "Change the public access of the app."
[public_private.arguments] [public_private.arguments]
[public_private.arguments.is_public] [public_private.arguments.is_public]
type = "boolean" type = "boolean"
ask = "Is it a public app ?" ask = "Is it a public app?"
default = true default = true

View file

@ -65,7 +65,7 @@ fi
# INSTALL OR REMOVE ABIWORD # INSTALL OR REMOVE ABIWORD
#================================================= #=================================================
ynh_script_progression --message="$action2 Abiword..." --weight=3 ynh_script_progression --message="$action2 AbiWord..." --weight=3
# Load common variables, and especially abiword dependencies. # Load common variables, and especially abiword dependencies.
source scripts/_variables source scripts/_variables

View file

@ -46,7 +46,7 @@ else
action2=Installing action2=Installing
fi fi
ynh_print_info --message="Libreoffice will be $action1." ynh_print_info --message="LibreOffice will be $action1."
if apt-cache depends ${app//_/-}-ynh-deps | grep --quiet abiword if apt-cache depends ${app//_/-}-ynh-deps | grep --quiet abiword
then then
@ -65,7 +65,7 @@ fi
# INSTALL OR REMOVE LIBREOFFICE # INSTALL OR REMOVE LIBREOFFICE
#================================================= #=================================================
ynh_script_progression --message="$action2 Libreoffice..." --weight=3 ynh_script_progression --message="$action2 LibreOffice..." --weight=3
# Load common variables, and especially libreoffice dependencies. # Load common variables, and especially libreoffice dependencies.
source scripts/_variables source scripts/_variables

View file

@ -69,7 +69,7 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================
ynh_script_progression --message="Reloading nginx web server..." ynh_script_progression --message="Reloading NGINX web server..."
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload