Browse Source

updates to install script

feature/startup-from-labels
Mar Alegre 5 years ago
parent
commit
72b361fdbb
  1. 1
      TODO.md
  2. 11
      install.sh
  3. 0
      install/bin/pdm-build
  4. 0
      install/bin/pdm-launch
  5. 0
      install/bin/pdm-shell
  6. 0
      install/containers-startup.service
  7. 0
      install/shflags

1
TODO.md

@ -13,3 +13,4 @@
- also interactive?
- allow arbitrary flags for launch & build?
- make install script set kernel params for rootless?
- use containers user?

11
install.sh

@ -8,9 +8,8 @@ distro=$(lsb_release -is)
release=$(lsb_release -rs)
if [[ $distro == "Debian" ]]; then
echo "Detected distro: Debian"
if [[ $release == "10" ]]; then
echo "Detected release: 10"
release=10
if [[ $release =~ '^[0-9]+$' ]]; then
echo "Detected release: $release"
elif [[ $release == "testing" ]]; then
echo "Detected release: testing"
release=Testing
@ -32,13 +31,13 @@ fi
echo "Copying scripts to /usr/local/bin ..."
# copy bin files to /usr/local/bin
sudo cp bin/* /usr/local/bin/
sudo cp install/bin/* /usr/local/bin/
# copy shflags to /usr/local/bin as well
sudo cp lib/shflags /usr/local/bin/
sudo cp install/shflags /usr/local/bin/
echo "Installing containers startup service ..."
# install systemd startup service
sudo cp lib/containers-startup.service /etc/systemd/system/
sudo cp install/containers-startup.service /etc/systemd/system/
sudo systemctl enable containers-startup.service
# create startup.sh if it doesn't exist
if [[ ! -f /etc/containers/startup.sh ]]; then

0
bin/pdm-build → install/bin/pdm-build

0
bin/pdm-launch → install/bin/pdm-launch

0
bin/pdm-shell → install/bin/pdm-shell

0
lib/containers-startup.service → install/containers-startup.service

0
lib/shflags → install/shflags

Loading…
Cancel
Save