Browse Source

Ownership of ghost binary

Bob Mottram 8 years ago
parent
commit
0ee00f775c
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-app-ghost

+ 6
- 0
src/freedombone-app-ghost View File

@@ -200,6 +200,9 @@ function upgrade_ghost {
200 200
     ghost_replace_services
201 201
     ghost_remove_offsite_links
202 202
 
203
+    if [ -f /usr/local/bin/ghost ]; then
204
+        chown root:root /usr/local/bin/ghost
205
+    fi
203 206
     chown -R ghost: /var/www/${GHOST_DOMAIN_NAME}/htdocs
204 207
     systemctl restart ghost
205 208
 }
@@ -526,6 +529,9 @@ function install_ghost {
526 529
     function_check add_ddns_domain
527 530
     add_ddns_domain $GHOST_DOMAIN_NAME
528 531
 
532
+    if [ -f /usr/local/bin/ghost ]; then
533
+        chown root:root /usr/local/bin/ghost
534
+    fi
529 535
     chown -R ghost: /var/www/${GHOST_DOMAIN_NAME}/htdocs
530 536
     set_completion_param "ghost domain" "$GHOST_DOMAIN_NAME"
531 537
     if ! grep -q "ghost version:" ${COMPLETION_FILE}; then