mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
16 lines
444 B
Bash
Executable file
16 lines
444 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
|