chore(dbms): fix installer

This commit is contained in:
Masahiko AMANO 2023-01-31 16:06:07 +03:00
parent 3a261d5d01
commit b4b76fe271

View File

@ -54,7 +54,7 @@ if [ ! -d /var/log/tanabata ]; then
fi fi
fi fi
chown 42776:42776 /var/log/tanabata chown 42776:42776 /var/log/tanabata
chmod 2755 /var/log/tanabata chmod 2775 /var/log/tanabata
if [ -d ../build ]; then if [ -d ../build ]; then
rm -r ../build/* rm -r ../build/*
@ -75,6 +75,7 @@ chmod 0755 /usr/bin/tdbms
if ! cp ./tdbms.service /etc/systemd/system/; then if ! cp ./tdbms.service /etc/systemd/system/; then
echo "FATAL: failed to copy 'tdbms.service' to '/etc/systemd/system'" echo "FATAL: failed to copy 'tdbms.service' to '/etc/systemd/system'"
exit 1
fi fi
chown 0:0 /etc/systemd/system/tdbms.service chown 0:0 /etc/systemd/system/tdbms.service
chmod 0644 /etc/systemd/system/tdbms.service chmod 0644 /etc/systemd/system/tdbms.service