Set rss permissions after upgrades
This commit is contained in:
parent
08bec8c31c
commit
fa83271da7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue