Commit 8c95549d authored by ale's avatar ale

Create a directory below /var/lib for the database on install

parent 65a18af1
Pipeline #627 passed with stages
in 1 minute and 52 seconds
......@@ -8,6 +8,11 @@ configure)
adduser --system --no-create-home --home /run/user-meta-server \
--disabled-password --disabled-login \
--quiet --ingroup user-meta-server user-meta-server
test -d /var/lib/user-meta-server || mkdir /var/lib/user-meta-server
chown user-meta-server.user-meta-server /var/lib/user-meta-server
chmod 750 /var/lib/user-meta-server
;;
esac
......
......@@ -16,6 +16,7 @@ PrivateDevices=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=/var/lib/user-meta-server
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
[Install]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment