From 09dd1bfdcf3ed6fa4823e288af08adfdd422c333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 9 Feb 2015 12:23:51 +0100 Subject: [PATCH] [fix]add missing sudo --- hooks/post_user_create | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_user_create b/hooks/post_user_create index 733bbe6..77116ef 100755 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -32,5 +32,5 @@ sudo cp $app_path/data/user.php.dist $app_path/data/users/$myuser/config.php 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 -R www-data: $app_path/data/users/$myuser/ \ No newline at end of file +sudo touch $app_path/data/users/users/$myuser/log.txt +sudo chown -R www-data: $app_path/data/users/$myuser/ \ No newline at end of file