mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Added upgrade script
This commit is contained in:
parent
1da51108d7
commit
6cf166e216
1 changed files with 15 additions and 0 deletions
15
scripts/upgrade
Executable file
15
scripts/upgrade
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Upgrade code
|
||||
sudo cp -r ../sources/ /opt/yunohost/ihatemoney/src/
|
||||
sudo find /opt/yunohost/ihatemoney/src/ -type f | while read LINE; do sudo chmod 640 "$LINE" ; done
|
||||
sudo find /opt/yunohost/ihatemoney/src/ -type d | while read LINE; do sudo chmod 755 "$LINE" ; done
|
||||
sudo chown -R ihatemoney:ihatemoney /opt/yunohost/ihatemoney/src
|
||||
sudo chown -R www-data:www-data /opt/yunohost/ihatemoney/src/budget/static
|
||||
|
||||
# Settings are not very likely to change, and that script may be
|
||||
# adapted to handle it in case.
|
||||
|
||||
# Restart backend
|
||||
sudo supervisorctl restart budget
|
Loading…
Reference in a new issue