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

18 lines
442 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
2014-09-27 10:10:43 +02:00
sudo cp -a $final_path/data /tmp/freshrss-data.bak
#delete old folder
sudo rm $final_path
# Copy files to the right place
2014-09-21 12:12:55 +02:00
sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path
2014-09-27 10:10:43 +02:00
#remove data folder
sudo rm -r $final_path/data
#copy back data folder
sudo mv /tmp/freshrss-data.bak $final_path/data
2014-09-21 12:12:55 +02:00
# Set permissions to freshrss directory
sudo chown -R www-data: $final_path