Bläddra i källkod

Set rss permissions after upgrades

Bob Mottram 8 år sedan
förälder
incheckning
fa83271da7
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6
    2
      src/freedombone-app-rss

+ 6
- 2
src/freedombone-app-rss Visa fil

@@ -85,6 +85,8 @@ function reconfigure_rss {
85 85
 }
86 86
 
87 87
 function upgrade_rss {
88
+    RSS_MOBILE_READER_PATH=/etc/share/ttrss-mobile
89
+
88 90
     if [[ $(app_is_installed rss) == "1" ]]; then
89 91
         function_check set_repo_commit
90 92
         set_repo_commit $RSS_READER_PATH "rss reader commit" "$RSS_READER_COMMIT" $RSS_READER_REPO
@@ -104,8 +106,6 @@ function upgrade_rss {
104 106
             exit 63452
105 107
         fi
106 108
 
107
-        RSS_MOBILE_READER_PATH=/etc/share/ttrss-mobile
108
-
109 109
         # remove any previous install
110 110
         if [ -d $RSS_READER_PATH/g2ttree-mobile ]; then
111 111
             if [[ $(is_completed "install_rss_mobile_reader") == "1" ]]; then
@@ -119,6 +119,10 @@ function upgrade_rss {
119 119
         function_check set_repo_commit
120 120
         set_repo_commit $RSS_MOBILE_READER_PATH "rss mobile reader commit" "$RSS_MOBILE_READER_COMMIT" $RSS_MOBILE_READER_REPO
121 121
     fi
122
+
123
+    chown -R www-data:www-data $RSS_MOBILE_READER_PATH
124
+    chown -R www-data:www-data $RSS_READER_PATH
125
+    chmod a+x $RSS_MOBILE_READER_PATH
122 126
 }
123 127
 
124 128
 function backup_local_rss {