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
Arnaud Véron
slapos.package
Commits
16714c9b
Commit
16714c9b
authored
Mar 03, 2014
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preseed: Update script to use and setup autoupdate.
parent
3e4d3955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
debian-preseed/slapos-quick-install.sh
debian-preseed/slapos-quick-install.sh
+15
-5
No files found.
debian-preseed/slapos-quick-install.sh
View file @
16714c9b
...
...
@@ -8,13 +8,21 @@ if [ -z "$COMPUTERNAME" ]; then
exit
1
fi
if
[
!
-f
/etc/apt/sources.list.d/slapos.list
]
;
then
echo
"deb http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_7.0/ ./"
|
tee
/etc/apt/sources.list.d/slapos.list
if
[
!
-f
/etc/slapos-aptget-flag
]
;
then
wget
-O-
"http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_7.0/Release.key"
| apt-key add -
gpg
--keyserver
subkeys.pgp.net
--recv-keys
1A716324
gpg
--export
1A716324 | apt-key add -
touch
/etc/slapos-aptget-flag
fi
apt-get update
apt-get
install
-y
ntp slapos-node
if
[
!
-f
/usr/local/bin/slappkg-update
]
;
then
apt-get
install
python-setuptools
easy_install
-U
slapos.package
fi
slappkg-conf
--key
=
slapos-update-v0-iePo8Patho4aejai2reew1cai7exeibiepa8winideefar3aiBoh8ohpaingieTh
--slapos-configuration
=
/etc/opt/update.cfg
slappkg-update
--slapos-configuration
=
/etc/opt/update.cfg
# Firmware for realtek
apt-get
install
-y
firmware-realtek
...
...
@@ -54,6 +62,8 @@ set -e
if
[
!
-f
/etc/opt/slapos/slapos.cfg
]
;
then
slapos node register
$COMPUTERNAME
--partition-number
20
--ipv6-interface
lo
--interface-name
eth0
rm
/etc/opt/update.cfg
slappkg-conf
--key
=
slapos-update-v0-iePo8Patho4aejai2reew1cai7exeibiepa8winideefar3aiBoh8ohpaingieTh
--slapos-configuration
=
/etc/opt/update.cfg
fi
if
[
!
-f
/etc/opt/slapos/slapos.cfg
]
;
then
...
...
@@ -61,6 +71,7 @@ if [ ! -f /etc/opt/slapos/slapos.cfg ]; then
exit
1
fi
# slapos-tweak should be merged with slapos.package
slapos-tweak
cat
>
/etc/cron.d/slapos-boot
<<
EOF
...
...
@@ -69,7 +80,6 @@ PATH=/usr/bin:/usr/sbin:/sbin:/bin
MAILTO=""
@reboot root /usr/sbin/slapos-tweak >> /opt/slapos/log/slapos-tweak.log 2>&1
@reboot root /opt/slapos/bin/bang /etc/opt/slapos/slapos.cfg -m "Reboot." >> /opt/slapos/log/slapos-tweak.log 2>&1
EOF
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