mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
[fix]Looks like I can't write bash scripts....
This commit is contained in:
parent
8d907c6731
commit
f95597f760
1 changed files with 3 additions and 5 deletions
|
@ -2,17 +2,15 @@
|
||||||
#backup data folder
|
#backup data folder
|
||||||
final_path=/var/www/freshrss
|
final_path=/var/www/freshrss
|
||||||
#
|
#
|
||||||
#if [[ -f $final_path/data/dist_user.conf ]]; then
|
if [ -f $final_path/data/dist_user.conf ]; then
|
||||||
# rm $final_path/data/dist_user.conf
|
rm $final_path/data/dist_user.conf
|
||||||
#fi
|
fi
|
||||||
#copy update script into freshrss path
|
#copy update script into freshrss path
|
||||||
sudo cp update-ynh.php $final_path/
|
sudo cp update-ynh.php $final_path/
|
||||||
#execute update
|
#execute update
|
||||||
sudo php $final_path/update-ynh.php
|
sudo php $final_path/update-ynh.php
|
||||||
#remove update script
|
#remove update script
|
||||||
sudo rm $final_path/update-ynh.php
|
sudo rm $final_path/update-ynh.php
|
||||||
#copy user default config
|
|
||||||
sudo cp ../conf/dist_user.conf $final_path/data/
|
|
||||||
# Set permissions to freshrss directory
|
# Set permissions to freshrss directory
|
||||||
sudo chown -R www-data: $final_path/data/
|
sudo chown -R www-data: $final_path/data/
|
||||||
sudo chown -R www-data: $final_path/extensions/
|
sudo chown -R www-data: $final_path/extensions/
|
Loading…
Reference in a new issue