Commit 5f4cf11b authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors-upgrader: add init-sdr script

parent d9b4d43f
Pipeline #21451 canceled with stage
#!/bin/sh
### BEGIN INIT INFO
# Provides: Init SDR
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Init SDR
### END INIT INFO
case "$1" in
start)
cd /root/trx_sdr/kernel;
make clean;
bash init.sh 2>> /opt/amarisoft/init-sdr.log >> /opt/amarisoft/init-sdr.log
;;
*)
true
esac
......@@ -25,3 +25,9 @@
- name: Give permission to slapuser to remove tmp files owned by other slapuser
copy: src=slapuser-rm-tmp dest=/etc/sudoers.d owner=root mode=440
- name: Add init-sdr service
copy: src=init-sdr dest=/etc/init.d owner=root mode=755
- name: Enable init-sdr
systemd: name=init-sdr enabled=yes
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment