|
@ -37,15 +37,8 @@ echo "Installing containers startup service ..." |
|
|
# install systemd startup service |
|
|
# install systemd startup service |
|
|
sudo cp .install/containers-startup.service /etc/systemd/system/ |
|
|
sudo cp .install/containers-startup.service /etc/systemd/system/ |
|
|
sudo systemctl enable containers-startup.service |
|
|
sudo systemctl enable containers-startup.service |
|
|
# create startup.sh if it doesn't exist |
|
|
# create startup.d if it doesn't exist |
|
|
if [[ ! -f /etc/containers/startup.sh ]]; then |
|
|
sudo mkdir -p /etc/containers/startup.d |
|
|
printf "#!/bin/bash\n\n" | sudo tee /etc/containers/startup.sh > /dev/null |
|
|
|
|
|
echo "Installed containers startup script in /etc/containers/startup.sh" |
|
|
|
|
|
echo "Put any podman-related commands that should run on startup in that file." |
|
|
|
|
|
else |
|
|
|
|
|
echo "Not overwriting /etc/containers/startup.sh as it already exists." |
|
|
|
|
|
fi |
|
|
|
|
|
sudo chmod +x /etc/containers/startup.sh |
|
|
|
|
|
|
|
|
|
|
|
# configure containers user |
|
|
# configure containers user |
|
|
name=containers |
|
|
name=containers |
|
|