From 1869f15ee5d3bb62689862aec66dc70ff501e093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 8 Feb 2015 19:32:37 +0100 Subject: [PATCH] [fix]user conf directory --- hooks/post_user_create | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hooks/post_user_create b/hooks/post_user_create index 764bc9c..b17ef47 100755 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -26,11 +26,11 @@ mysql -u $db_user -p$db_pwd $db_user < /tmp/$myuser-install.sql sudo rm /tmp/$myuser-install.sql #copy default conf #copy default conf -sudo mkdir $app_path/data/$myuser/ -sudo cp $app_path/data/user.php.dist $app_path/data/$myuser/config.php +sudo mkdir $app_path/data/users/$myuser/ +sudo cp $app_path/data/user.php.dist $app_path/data/users/$myuser/config.php #change username -sudo sed -i "s/YnoUser/$myuser/g" $app_path/data/$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/$myuser/log.txt +touch $app_path/data/users/users/$myuser/log.txt chown www-data: $app_path/data/users/$myuser -R \ No newline at end of file