forgejo_ynh/hooks/post_app_addaccess

22 lines
461 B
Text
Raw Normal View History

#!/bin/bash
# IMPORT GENERIC HELPERS
source /usr/share/yunohost/helpers
pwd=$(dirname $0)
filename=$(basename $0)
# Set vars for following script
2023-09-24 10:57:31 +02:00
# 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
2023-09-24 10:57:31 +02:00
synchronize_users