1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/forgejo_ynh.git synced 2024-09-03 18:36:26 +02:00
forgejo_ynh/hooks/post_app_addaccess
2023-09-24 12:05:37 +02:00

21 lines
461 B
Bash

#!/bin/bash
# IMPORT GENERIC HELPERS
source /usr/share/yunohost/helpers
pwd=$(dirname $0)
filename=$(basename $0)
# Set vars for following script
# TODO : app should be fetch from arguments
# The file name is <priority>-<app>
app=${filename#*-}
domain=$(ynh_app_setting_get --app=$app --key=domain)
path=$(ynh_app_setting_get --app=$app --key=path)
# Load common variables and helpers
source ${pwd}/../../apps/${app}/scripts/_common.sh
synchronize_users