1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

[fix]user conf directory

This commit is contained in:
Clément 2015-02-08 19:32:37 +01:00
parent 03dc0f58c6
commit 1869f15ee5

View file

@ -26,11 +26,11 @@ mysql -u $db_user -p$db_pwd $db_user < /tmp/$myuser-install.sql
sudo rm /tmp/$myuser-install.sql sudo rm /tmp/$myuser-install.sql
#copy default conf #copy default conf
#copy default conf #copy default conf
sudo mkdir $app_path/data/$myuser/ sudo mkdir $app_path/data/users/$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 #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 #add wallabag sharing
sudo sed -i "s/sharingArrayYnh/$sharingWallabag/g" $app_path/data/users/$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 touch $app_path/data/users/users/$myuser/log.txt
chown www-data: $app_path/data/users/$myuser -R chown www-data: $app_path/data/users/$myuser -R