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
|
|
|
#
|
2015-02-09 13:02:43 +01:00
|
|
|
if [ -f $final_path/data/user.php.dist ]; then
|
|
|
|
sudo rm $final_path/data/user.php.dist
|
2015-02-09 12:57:56 +01:00
|
|
|
fi
|
2015-02-08 18:55:48 +01:00
|
|
|
#copy update script into freshrss path
|
2015-02-08 18:57:53 +01:00
|
|
|
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-09 12:51:38 +01:00
|
|
|
#remove update script
|
|
|
|
sudo rm $final_path/update-ynh.php
|
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/
|
2015-10-03 11:58:14 +02:00
|
|
|
sudo chown -R www-data: $final_path/extensions/
|
|
|
|
|
2015-11-06 16:45:48 +01:00
|
|
|
sudo apt-get update
|
2015-10-03 11:58:14 +02:00
|
|
|
sudo apt-get install -y php5-gmp
|