Fix error in install.sh
This commit is contained in:
parent
68cece5997
commit
4274ce01e8
@ -19,7 +19,7 @@ if [[ $user != 'root' ]]; then
|
|||||||
sudo cp systemd-templates/docker-upgrade.service /etc/systemd/system/
|
sudo cp systemd-templates/docker-upgrade.service /etc/systemd/system/
|
||||||
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/docker-upgrade.service
|
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/docker-upgrade.service
|
||||||
sudo cp systemd-templates/docker-upgrade.timer /etc/systemd/system/
|
sudo cp systemd-templates/docker-upgrade.timer /etc/systemd/system/
|
||||||
sudo cp systemd-templates/machines-start.service /etc/systemd/system/
|
sudo cp systemd-templates/machines-start.timer /etc/systemd/system/
|
||||||
else
|
else
|
||||||
cp systemd-templates/cont-snap@.service /etc/systemd/system/
|
cp systemd-templates/cont-snap@.service /etc/systemd/system/
|
||||||
cp systemd-templates/conts-snap.service /etc/systemd/system/
|
cp systemd-templates/conts-snap.service /etc/systemd/system/
|
||||||
@ -28,7 +28,7 @@ else
|
|||||||
cp systemd-templates/docker-upgrade.service /etc/systemd/system/
|
cp systemd-templates/docker-upgrade.service /etc/systemd/system/
|
||||||
sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/docker-upgrade.service
|
sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/docker-upgrade.service
|
||||||
cp systemd-templates/docker-upgrade.timer /etc/systemd/system/
|
cp systemd-templates/docker-upgrade.timer /etc/systemd/system/
|
||||||
cp systemd-templates/machines-start.service /etc/systemd/system/
|
cp systemd-templates/machines-start.timer /etc/systemd/system/
|
||||||
fi
|
fi
|
||||||
echo "Reloading Systemd..."
|
echo "Reloading Systemd..."
|
||||||
if [[ $user != 'root' ]]; then
|
if [[ $user != 'root' ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user