mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Fix provisioning script
Fix some errors in the provisioning script. Add lines to create 'rkt' group if it doesn't already exist, and to create /var/lib/rkt if it doesn't already exist.
This commit is contained in:
parent
30262d7b3c
commit
bf5c0e8570
1 changed files with 6 additions and 0 deletions
|
|
@ -33,6 +33,12 @@ if [[ ! -e /usr/local/bin/rkt ]]; then
|
|||
sudo mv stage1-fly.aci /usr/local/bin/
|
||||
sudo mv stage1-kvm.aci /usr/local/bin/
|
||||
|
||||
# Create working directory for rkt
|
||||
sudo mkdir -p /var/lib/rkt
|
||||
|
||||
# Create rkt group if it doesn't already exist
|
||||
[ $(getent group rkt) ] || sudo groupadd rkt
|
||||
|
||||
# Remove directory created by unpacking tarball
|
||||
# Leave tarball in place (indicates provisioned system)
|
||||
cd ..
|
||||
|
|
|
|||
Loading…
Reference in a new issue