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 data path

This commit is contained in:
Clément 2015-02-08 19:23:59 +01:00
parent fe3cf1817c
commit 57956789d8
3 changed files with 8 additions and 8 deletions

View file

@ -32,12 +32,12 @@ then
sudo rm /tmp/$myuser-install.sql sudo rm /tmp/$myuser-install.sql
#copy default conf #copy default conf
sudo mkdir $app_path/data/$myuser/ 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 #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/$myuser/config.php sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $app_path/data/$myuser/config.php
touch $app_path/data/$myuser/log.txt touch $app_path/data/users/$myuser/log.txt
chown www-data: $app_path/data/$myuser -R chown www-data: $app_path/data/users/$myuser -R
done done
fi fi

View file

@ -31,6 +31,6 @@ sudo cp $app_path/data/user.php.dist $app_path/data/$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/$myuser/config.php
#add wallabag sharing #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/$myuser/log.txt touch $app_path/data/users/$myuser/log.txt
chown www-data: $app_path/data/$myuser -R chown www-data: $app_path/data/users/$myuser -R

View file

@ -74,7 +74,7 @@ do
sudo rm /tmp/$myuser-install.sql sudo rm /tmp/$myuser-install.sql
sudo mkdir $final_path/data/$myuser/ sudo mkdir $final_path/data/$myuser/
#copy default conf #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 touch $final_path/data/$myuser/log.txt
#change username #change username
sudo sed -i "s/YnoUser/$myuser/g" $final_path/data/$myuser\_user.php sudo sed -i "s/YnoUser/$myuser/g" $final_path/data/$myuser\_user.php