1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

fix hook after upgrade

This commit is contained in:
Clément 2018-10-20 10:31:29 +02:00
parent 27439cf961
commit 3a137d0bf4

View file

@ -57,6 +57,11 @@ sudo cp $FINAL_PATH/data/config.php $TMPDIR/data/config.php
sudo cp -r $FINAL_PATH/data/users/. $TMPDIR/data/users/
sudo cp -r $FINAL_PATH/extensions/. $TMPDIR/extensions/
#update hook for multi instance
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_app_addaccess
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_create
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_delete
# Set permissions to freshrss directory
sudo chown -R root:root $TMPDIR
sudo chown -R www-data: $TMPDIR/data/