From ff45b2c39b2ad09b5200666897132270e56f81a4 Mon Sep 17 00:00:00 2001 From: TitusPiJean Date: Tue, 21 Feb 2017 21:11:23 +0100 Subject: [PATCH] SSOwat integration and other improvements Closes #5, closes #12, closes #19 and closes #21 Breaks /folder nginx configuration ? --- conf/nginx.conf | 2 +- conf/nginx_root.conf | 2 +- hooks/post_user_create | 30 ++++++++++++++++++++ manifest.json | 15 ++-------- scripts/install | 64 ++++++++++++++++++++++++++++++++++++++---- 5 files changed, 93 insertions(+), 20 deletions(-) create mode 100644 hooks/post_user_create diff --git a/conf/nginx.conf b/conf/nginx.conf index 53cc3d9..e934ffe 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -56,5 +56,5 @@ location ^~ YNH_WWW_PATH { # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + # include conf.d/yunohost_panel.conf.inc; } diff --git a/conf/nginx_root.conf b/conf/nginx_root.conf index 15ab619..23411f6 100644 --- a/conf/nginx_root.conf +++ b/conf/nginx_root.conf @@ -56,5 +56,5 @@ location ^~ / { # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + # include conf.d/yunohost_panel.conf.inc; } diff --git a/hooks/post_user_create b/hooks/post_user_create new file mode 100644 index 0000000..368de44 --- /dev/null +++ b/hooks/post_user_create @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e + +# Retrieve arguments +username=$1 +app=#APP# + +# Source app helpers +source /usr/share/yunohost/helpers + +domain=$(