mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Add service setting for app shell
This commit is contained in:
parent
77d4ee7b3a
commit
6e305ec8a6
2 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,8 @@ source ynh_add_swap
|
|||
source /usr/share/yunohost/helpers
|
||||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
# Set `service` settings to support `yunohost app shell` command
|
||||
ynh_app_setting_set --app="$app" --key=service --value="$app-web.service"
|
||||
|
||||
#=================================================
|
||||
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
|
||||
|
|
|
@ -58,6 +58,12 @@ if [[ -z "$redis_namespace" ]]; then
|
|||
ynh_app_setting_set --app=$app --key=redis_namespace --value=$redis_namespace
|
||||
fi
|
||||
|
||||
# If service doesn't exist, create it
|
||||
if [[ -z "$service" ]]; then
|
||||
# Set `service` settings to support `yunohost app shell` command
|
||||
ynh_app_setting_set --app="$app" --key=service --value="$app-web.service"
|
||||
fi
|
||||
|
||||
#Remove previous added repository
|
||||
ynh_remove_extra_repo
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue