mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
19 lines
521 B
Bash
Executable file
19 lines
521 B
Bash
Executable file
#!/bin/bash
|
|
#backup data folder
|
|
final_path=/var/www/freshrss
|
|
#
|
|
if [ -f $final_path/data/user.php.dist ]; then
|
|
sudo rm $final_path/data/user.php.dist
|
|
fi
|
|
#copy update script into freshrss path
|
|
sudo cp update-ynh.php $final_path/
|
|
#execute update
|
|
sudo php $final_path/update-ynh.php
|
|
#remove update script
|
|
sudo rm $final_path/update-ynh.php
|
|
# Set permissions to freshrss directory
|
|
sudo chown -R www-data: $final_path/data/
|
|
sudo chown -R www-data: $final_path/extensions/
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y php5-gmp
|