Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
5f4cf11b
Commit
5f4cf11b
authored
Mar 09, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors-upgrader: add init-sdr script
parent
d9b4d43f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
playbook/roles/ors-upgrade/files/init-sdr
playbook/roles/ors-upgrade/files/init-sdr
+19
-0
playbook/roles/ors-upgrade/tasks/main.yml
playbook/roles/ors-upgrade/tasks/main.yml
+6
-0
No files found.
playbook/roles/ors-upgrade/files/init-sdr
0 → 100755
View file @
5f4cf11b
#!/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
playbook/roles/ors-upgrade/tasks/main.yml
View file @
5f4cf11b
...
@@ -25,3 +25,9 @@
...
@@ -25,3 +25,9 @@
-
name
:
Give permission to slapuser to remove tmp files owned by other slapuser
-
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
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment