1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/scripts/upgrade

16 lines
458 B
Text
Raw Normal View History

2014-09-21 12:12:55 +02:00
#!/bin/bash
2014-09-27 10:10:43 +02:00
#backup data folder
2014-09-21 12:12:55 +02:00
final_path=/var/www/freshrss
2015-02-08 18:55:48 +01:00
#
if [[ -f $final_path/data/dist_user.conf ]]; then
rm $final_path/data/dist_user.conf
fi
#copy update script into freshrss path
sudo cp update-ynh.php $final_path/
2015-02-08 18:55:48 +01:00
#execute update
sudo php $final_path/update-ynh.php
2015-02-08 19:06:57 +01:00
sudo cp ../conf/dist_user.conf $final_path/data/
2014-09-21 12:12:55 +02:00
# Set permissions to freshrss directory
2015-02-08 19:06:57 +01:00
sudo chown -R www-data: $final_path/data/
sudo chown -R www-data: $final_path/extensions/