瀏覽代碼

radicale user in the www group

Bob Mottram 8 年之前
父節點
當前提交
72f959bb29
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-app-radicale

+ 4
- 0
src/freedombone-app-radicale 查看文件

282
     fi
282
     fi
283
 
283
 
284
     firewall_remove ${RADICALE_PORT} tcp
284
     firewall_remove ${RADICALE_PORT} tcp
285
+    deluser radicale
285
 
286
 
286
     function_check remove_onion_service
287
     function_check remove_onion_service
287
     remove_onion_service radicale ${RADICALE_ONION_PORT}
288
     remove_onion_service radicale ${RADICALE_ONION_PORT}
320
 
321
 
321
     apt-get -yq remove --purge radicale python-radicale
322
     apt-get -yq remove --purge radicale python-radicale
322
 
323
 
324
+    useradd -c "Radicale system account" -d /var/www/radicale -m -r -g radicale radicale
325
+    usermod -a -G www-data radicale
326
+
323
     # create directories
327
     # create directories
324
     if [ ! -d /var/log/radicale ]; then
328
     if [ ! -d /var/log/radicale ]; then
325
         mkdir /var/log/radicale
329
         mkdir /var/log/radicale