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
2014-09-27 10:15:02 +02:00

17 lines
445 B
Bash
Executable file

#!/bin/bash
#backup data folder
final_path=/var/www/freshrss
sudo cp -a $final_path/data /tmp/freshrss-data.bak
#delete old folder
sudo rm -r $final_path
# Copy files to the right place
sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path
#remove data folder
sudo rm -r $final_path/data
#copy back data folder
sudo mv /tmp/freshrss-data.bak $final_path/data
# Set permissions to freshrss directory
sudo chown -R www-data: $final_path