Correct stupid errors

This commit is contained in:
Alexandre CATTEAU 2022-03-13 12:49:18 +01:00
parent 0523c113b0
commit 64573a9f58
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ for dir in $sync_directory/*; do
echo "pulling $dir"
git -C $dir pull 2>/dev/null >/dev/null
if [ -e $dir/install.sh ]; then
echo "Running $dir\'s install script..."
echo "Running $dir's install script..."
$dir/install.sh
fi
elif [ $REMOTE = $BASE ]; then

View File

@ -9,9 +9,9 @@ sudo cp $(dirname "$0")/systemd-templates/conf-sync.service /etc/systemd/system/
sudo sed -i -e "s/PH_USER/$(whoami)/g" /etc/systemd/system/conf-sync.service
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/conf-sync.service
if [ "$client_type" = "server" ]; then
sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/conf-sync.timer
sudo cp $(dirname "$0")/systemd-templates/conf-sync-server.timer /etc/systemd/system/conf-sync.timer
else
sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/conf-sync.timer
sudo cp $(dirname "$0")/systemd-templates/conf-sync-desktop.timer /etc/systemd/system/conf-sync.timer
fi
echo "Reloading Systemd..."