forked from 0x2620/pandora
formating
This commit is contained in:
parent
cf10d98d50
commit
be41fe9dbe
1 changed files with 3 additions and 2 deletions
|
@ -66,9 +66,10 @@ def check_services(base):
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
print 'Please install init script for "%s" service:' % service
|
print 'Please install init script for "%s" service:' % service
|
||||||
if os.path.exists('/etc/init'):
|
if os.path.exists('/etc/init'):
|
||||||
print 'sudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)
|
print '\tsudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)
|
||||||
if os.path.exists('/lib/systemd/system'):
|
if os.path.exists('/lib/systemd/system'):
|
||||||
print 'sudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)
|
print '\tsudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)
|
||||||
|
print '\tsudo service %s start' % service
|
||||||
print ''
|
print ''
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue