Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ors-utils
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
Boxiang Sun
ors-utils
Commits
81eb8423
Commit
81eb8423
authored
Jun 30, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ors assembly install.sh script
parent
02e9d5eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
ors-assembly/install.sh
ors-assembly/install.sh
+32
-0
No files found.
ors-assembly/install.sh
0 → 100755
View file @
81eb8423
#!/bin/bash
set
-x
if
[
"
$EUID
"
-ne
0
]
then
echo
"Please run as root"
exit
fi
DIR
=
"
$(
dirname
$(
realpath
$0
))
"
INSTALL_DIR
=
"/opt/ors-assembly"
mkdir
-p
$INSTALL_DIR
&&
cd
$INSTALL_DIR
if
[
!
-f
$INSTALL_DIR
/slapos-device-configuration
]
;
then
echo
"Cloning slapos-device-configuration repository..."
git clone https://lab.nexedi.com/nexedi/slapos-device-configuration
fi
cd
slapos-device-configuration
git checkout
-f
ors
git reset
--hard
origin/ors
echo
"Installing flash-ors-ssd and add-token commands..."
ln
-sf
$INSTALL_DIR
/slapos-device-configuration/flash-image.sh /usr/bin/flash-ors-ssd
ln
-sf
$INSTALL_DIR
/slapos-device-configuration/add-tokens.py /usr/bin/add-ors-tokens
echo
"Installing slapos..."
wget https://deploy.rapid.space/slapos
bash slapos
echo
"Installing re6st..."
wget https://deploy.rapid.space/re6st
bash re6st
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