Selaa lähdekoodia

Ownership of users file

Bob Mottram 8 vuotta sitten
vanhempi
commit
b45fc21345
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1
    0
      src/freedombone-app-radicale

+ 1
- 0
src/freedombone-app-radicale Näytä tiedosto

67
 
67
 
68
     if ! grep "$new_username:" ${RADICALE_USERS}; then
68
     if ! grep "$new_username:" ${RADICALE_USERS}; then
69
         htpasswd -bd ${RADICALE_USERS} "$new_username" "$new_user_password"
69
         htpasswd -bd ${RADICALE_USERS} "$new_username" "$new_user_password"
70
+        chown www-data:www-data ${RADICALE_USERS}
70
         systemctl reload radicale
71
         systemctl reload radicale
71
     fi
72
     fi
72
     echo '0'
73
     echo '0'