mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Updating init script installation details
This commit is contained in:
3
setup.py
3
setup.py
@@ -13,7 +13,6 @@ from awx import __version__
|
|||||||
build_timestamp = os.getenv("BUILD",datetime.datetime.now().strftime('-%Y%m%d%H%M'))
|
build_timestamp = os.getenv("BUILD",datetime.datetime.now().strftime('-%Y%m%d%H%M'))
|
||||||
|
|
||||||
# Paths we'll use later
|
# Paths we'll use later
|
||||||
sysinit = "/etc/init.d"
|
|
||||||
etcpath = "/etc/awx"
|
etcpath = "/etc/awx"
|
||||||
homedir = "/var/lib/awx"
|
homedir = "/var/lib/awx"
|
||||||
sharedir = "/usr/share/awx"
|
sharedir = "/usr/share/awx"
|
||||||
@@ -21,9 +20,11 @@ munin_plugin_path = "/etc/munin/plugins/"
|
|||||||
munin_plugin_conf_path = "/etc/munin/plugin-conf.d"
|
munin_plugin_conf_path = "/etc/munin/plugin-conf.d"
|
||||||
|
|
||||||
if os.path.exists("/etc/debian_version"):
|
if os.path.exists("/etc/debian_version"):
|
||||||
|
sysinit = "/etc/init.d"
|
||||||
webconfig = "/etc/apache2/conf.d"
|
webconfig = "/etc/apache2/conf.d"
|
||||||
shutil.copy("config/awx-munin-ubuntu.conf", "config/awx-munin.conf")
|
shutil.copy("config/awx-munin-ubuntu.conf", "config/awx-munin.conf")
|
||||||
else:
|
else:
|
||||||
|
sysinit = "/etc/rc.d/init.d"
|
||||||
webconfig = "/etc/httpd/conf.d"
|
webconfig = "/etc/httpd/conf.d"
|
||||||
shutil.copy("config/awx-munin-el.conf", "config/awx-munin.conf")
|
shutil.copy("config/awx-munin-el.conf", "config/awx-munin.conf")
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# ansible-tower
|
||||||
|
#
|
||||||
|
# chkconfig: - 20 80
|
||||||
|
# description: support init to manage tower and its related services
|
||||||
|
|
||||||
# init script to manage tower and its related services
|
### BEGIN INIT INFO
|
||||||
# Copyright (c) 2014 Ansible, Inc.
|
# Provides:
|
||||||
# All Rights Reserved
|
# Required-Start:
|
||||||
|
# Required-Stop:
|
||||||
|
# Should-Start:
|
||||||
|
# Should-Stop:
|
||||||
|
# Default-Start:
|
||||||
|
# Default-Stop:
|
||||||
|
# Short-Description: support init to manage tower and its related services
|
||||||
|
# Description: Ansible Tower provides an easy-to-use UI and dashboard, role-based access control and more for your Ansible initiative
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
if [ -e /etc/debian_version ]
|
if [ -e /etc/debian_version ]
|
||||||
then
|
then
|
||||||
@@ -36,5 +49,5 @@ case "$1" in
|
|||||||
service_action status
|
service_action status
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|restart}"
|
echo "Usage: $0 {start|stop|restart|status}"
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user