From 9422ee95c8ed83f7c8857a5969468c2656e86606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 8 Feb 2015 19:48:04 +0100 Subject: [PATCH] [fix]user conf --- hooks/post_app_addaccess | 2 +- hooks/post_user_create | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_app_addaccess b/hooks/post_app_addaccess index b9b2882..2b0ff50 100755 --- a/hooks/post_app_addaccess +++ b/hooks/post_app_addaccess @@ -36,7 +36,7 @@ then #change username sudo sed -i "s/YnoUser/$myuser/g" $app_path/data/users/$myuser/config.php #add wallabag sharing - sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $app_path/data/$myuser/config.php + sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $app_path/data/users/$myuser/config.php touch $app_path/data/users/$myuser/log.txt chown www-data: $app_path/data/users/$myuser -R done diff --git a/hooks/post_user_create b/hooks/post_user_create index b17ef47..733bbe6 100755 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -33,4 +33,4 @@ sudo sed -i "s/YnoUser/$myuser/g" $app_path/data/users/$myuser/config.php #add wallabag sharing sudo sed -i "s/sharingArrayYnh/$sharingWallabag/g" $app_path/data/users/$myuser/config.php touch $app_path/data/users/users/$myuser/log.txt -chown www-data: $app_path/data/users/$myuser -R \ No newline at end of file +chown -R www-data: $app_path/data/users/$myuser/ \ No newline at end of file