mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
[fix]fix user conf directory
This commit is contained in:
parent
57956789d8
commit
03dc0f58c6
1 changed files with 4 additions and 4 deletions
|
@ -72,13 +72,13 @@ do
|
||||||
mysql -u $db_user -p$db_pwd $db_user < /tmp/$myuser-install.sql
|
mysql -u $db_user -p$db_pwd $db_user < /tmp/$myuser-install.sql
|
||||||
#remove temp sql
|
#remove temp sql
|
||||||
sudo rm /tmp/$myuser-install.sql
|
sudo rm /tmp/$myuser-install.sql
|
||||||
sudo mkdir $final_path/data/$myuser/
|
sudo mkdir $final_path/data/users/$myuser/
|
||||||
#copy default conf
|
#copy default conf
|
||||||
sudo cp ../conf/dist_user.conf $final_path/data/users/$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/users/$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/users/$myuser/config.php
|
||||||
sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $final_path/data/$myuser\_user.php
|
sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $final_path/data/users/$myuser/config.php
|
||||||
done
|
done
|
||||||
#copy defaut user conf for futur users
|
#copy defaut user conf for futur users
|
||||||
sudo cp ../conf/dist_user.conf $final_path/data/user.php.dist
|
sudo cp ../conf/dist_user.conf $final_path/data/user.php.dist
|
||||||
|
|
Loading…
Add table
Reference in a new issue