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:
parent
fe3cf1817c
commit
57956789d8
3 changed files with 8 additions and 8 deletions
|
@ -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
|
|
@ -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
|
||||
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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue