init from svn
This commit is contained in:
15
scripts/postinst
Executable file
15
scripts/postinst
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
service_name=ac
|
||||
|
||||
test ! -f /usr/local/etc/ac/ac.yaml && cp -f /usr/local/etc/ac/default/ac.yaml /usr/local/etc/ac
|
||||
|
||||
if test -x /sbin/ldconfig
|
||||
then
|
||||
/sbin/ldconfig
|
||||
else
|
||||
echo Cannot run /sbin/ldconfig
|
||||
fi
|
||||
|
||||
systemctl enable $service_name
|
||||
|
||||
Reference in New Issue
Block a user