initial import
This commit is contained in:
19
onak/onak.install
Normal file
19
onak/onak.install
Normal file
@@ -0,0 +1,19 @@
|
||||
post_install() {
|
||||
if ! getent passwd onak &>/dev/null; then
|
||||
useradd -r -d /var/lib/onak -g adm -s /bin/false onak
|
||||
fi
|
||||
|
||||
chown onak:adm /var/lib/onak
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if getent passwd onak &>/dev/null; then
|
||||
userdel onak >/dev/null
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/onak
|
||||
}
|
||||
Reference in New Issue
Block a user