diff --git a/hooks/post_app_addaccess b/hooks/post_app_addaccess index f837cc8..b9b2882 100755 --- a/hooks/post_app_addaccess +++ b/hooks/post_app_addaccess @@ -32,12 +32,12 @@ then sudo rm /tmp/$myuser-install.sql #copy default conf sudo mkdir $app_path/data/$myuser/ - sudo cp $app_path/data/user.php.dist $app_path/data/$myuser/config.php + 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/$myuser/config.php - touch $app_path/data/$myuser/log.txt - chown www-data: $app_path/data/$myuser -R + touch $app_path/data/users/$myuser/log.txt + chown www-data: $app_path/data/users/$myuser -R done fi \ No newline at end of file diff --git a/hooks/post_user_create b/hooks/post_user_create index 0af65dc..764bc9c 100755 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -31,6 +31,6 @@ sudo cp $app_path/data/user.php.dist $app_path/data/$myuser/config.php #change username sudo sed -i "s/YnoUser/$myuser/g" $app_path/data/$myuser/config.php #add wallabag sharing -sudo sed -i "s/sharingArrayYnh/$sharingWallabag/g" $app_path/data/$myuser/config.php -touch $app_path/data/$myuser/log.txt -chown www-data: $app_path/data/$myuser -R \ No newline at end of file +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 \ No newline at end of file diff --git a/scripts/install b/scripts/install index 39ac2eb..e43c86b 100755 --- a/scripts/install +++ b/scripts/install @@ -74,7 +74,7 @@ do sudo rm /tmp/$myuser-install.sql sudo mkdir $final_path/data/$myuser/ #copy default conf - sudo cp ../conf/dist_user.conf $final_path/data/$myuser/config.php + sudo cp ../conf/dist_user.conf $final_path/data/users/$myuser/config.php touch $final_path/data/$myuser/log.txt #change username sudo sed -i "s/YnoUser/$myuser/g" $final_path/data/$myuser\_user.php