Need sudo for user creation

This commit is contained in:
DarkFeather 2020-11-24 12:52:50 -06:00
parent 1474aecd5d
commit 59ae84bbbb
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -23,7 +23,7 @@ reverse: ${pkgdir}/usr/lib/systemd/system/raven.service
cp ${pkgdir}/usr/lib/systemd/system/raven.service .
checkperm: ${pkgdir}/opt/raven.mono
if ! id raven; then useradd raven; echo User raven added; fi
if ! id raven; then sudo useradd raven; echo User raven added; fi
chown -R raven:raven ${pkgdir}/opt/raven.mono ${CONFDIR}*
chmod 0600 ${pkgdir}/opt/raven.mono ${CONFDIR}*/*
chmod 0700 ${CONFDIR}*