Set rss permissions after upgrades

This commit is contained in:
Bob Mottram 2017-01-02 18:26:22 +00:00
parent 08bec8c31c
commit fa83271da7
1 changed files with 6 additions and 2 deletions

View File

@ -85,6 +85,8 @@ function reconfigure_rss {
}
function upgrade_rss {
RSS_MOBILE_READER_PATH=/etc/share/ttrss-mobile
if [[ $(app_is_installed rss) == "1" ]]; then
function_check set_repo_commit
set_repo_commit $RSS_READER_PATH "rss reader commit" "$RSS_READER_COMMIT" $RSS_READER_REPO
@ -104,8 +106,6 @@ function upgrade_rss {
exit 63452
fi
RSS_MOBILE_READER_PATH=/etc/share/ttrss-mobile
# remove any previous install
if [ -d $RSS_READER_PATH/g2ttree-mobile ]; then
if [[ $(is_completed "install_rss_mobile_reader") == "1" ]]; then
@ -119,6 +119,10 @@ function upgrade_rss {
function_check set_repo_commit
set_repo_commit $RSS_MOBILE_READER_PATH "rss mobile reader commit" "$RSS_MOBILE_READER_COMMIT" $RSS_MOBILE_READER_REPO
fi
chown -R www-data:www-data $RSS_MOBILE_READER_PATH
chown -R www-data:www-data $RSS_READER_PATH
chmod a+x $RSS_MOBILE_READER_PATH
}
function backup_local_rss {