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
Kirill Smelkov
slapos.package
Commits
f9e93aa6
Commit
f9e93aa6
authored
Aug 31, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-start now use /etc/opt/slapos/ as default directory
parent
f10024f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
slapos-node/slapos-start
slapos-node/slapos-start
+1
-6
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+5
-2
No files found.
slapos-node/slapos-start
View file @
f9e93aa6
...
...
@@ -5,12 +5,7 @@ IPV6CHECK=ipv6.google.com
IPV4CHECK
=
google.com
IPV6WAITTIME
=
5
# Execute slapformat
if
[
-f
/etc/opt/slapos/slapos.cfg
]
;
then
SLAPOS_CONFIGURATION
=
/etc/opt/slapos
else
SLAPOS_CONFIGURATION
=
/etc/slapos
fi
SLAPOS_CONFIGURATION
=
/etc/opt/slapos/
echo
"Starting slap script"
...
...
slapprepare/slapprepare/script/slapos
View file @
f9e93aa6
...
...
@@ -111,14 +111,16 @@ done
repo
=
`
egrep ^certificate_repository_path
$SLAPOS_CONFIGURATION
/slapos.cfg |
sed
's/^certificate_repository_path.*= *//'
`
mkdir
-v
-p
-m
0755
$repo
# software detected, ready to run
# Set up cron
# Fix path in case of old config:
SLAPOS_GOOD_CONFIGURATION
=
/etc/opt/slapos/
if
[
$SLAPOS_GOOD_CONFIGURATION
!=
$SLAPOS_CONFIGURATION
]
;
then
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/etc/cron.d/slapos-node
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/usr/sbin/slapos-start
# Set up cron
# Remove default route for ipv6 in case of openvpn-needed
echo
"""# BEWARE: This file will be automatically regenerated on each boot
SHELL=/bin/sh
...
...
@@ -148,6 +150,7 @@ sysctl -w \
net.ipv6.neigh.default.gc_thresh2
=
1024
\
net.ipv6.neigh.default.gc_thresh3
=
2048
# software detected, ready to run
systemctl
enable
slapos-node.service
systemctl start slapos-node.service
...
...
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