mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
Fix installed path
This commit is contained in:
parent
b4146e5c67
commit
f9c2bad137
1 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
app=$1
|
app=$1
|
||||||
new_users=$2
|
new_users=$2
|
||||||
|
app_path=/var/www/freshrss
|
||||||
|
|
||||||
|
|
||||||
if [[ "freshrss" = "$app" ]];
|
if [[ "freshrss" = "$app" ]];
|
||||||
|
@ -21,7 +22,7 @@ then
|
||||||
for myuser in $(echo "$new_users" | sed "s/,/ /g")
|
for myuser in $(echo "$new_users" | sed "s/,/ /g")
|
||||||
do
|
do
|
||||||
#copy sql
|
#copy sql
|
||||||
sudo cp /var/www/freshrss/app/SQL/install_ynh.sql /tmp/$myuser-install.sql
|
sudo cp $app_path/app/SQL/install_ynh.sql /tmp/$myuser-install.sql
|
||||||
|
|
||||||
#change username in sql
|
#change username in sql
|
||||||
sudo sed -i "s/YnoUser/$myuser/g" /tmp/$myuser-install.sql
|
sudo sed -i "s/YnoUser/$myuser/g" /tmp/$myuser-install.sql
|
||||||
|
@ -30,11 +31,11 @@ then
|
||||||
#remove temp sql
|
#remove temp sql
|
||||||
sudo rm /tmp/$myuser-install.sql
|
sudo rm /tmp/$myuser-install.sql
|
||||||
#copy default conf
|
#copy default conf
|
||||||
sudo cp /var/www/freshrss/data/user.php.dist /var/www/freshrss/data/$myuser\_user.php
|
sudo cp $app_path/data/user.php.dist $app_path/data/$myuser\_user.php
|
||||||
#change username
|
#change username
|
||||||
sudo sed -i "s/YnoUser/$myuser/g" $final_path/data/$myuser\_user.php
|
sudo sed -i "s/YnoUser/$myuser/g" $app_path/data/$myuser\_user.php
|
||||||
#add wallabag sharing
|
#add wallabag sharing
|
||||||
sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $final_path/data/$myuser\_user.php
|
sudo sed -i "s@sharingArrayYnh@$sharingWallabag@g" $app_path/data/$myuser\_user.php
|
||||||
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue