Skip to content
Snippets Groups Projects
Commit eb80ab69 authored by efer's avatar efer
Browse files

text fixes

parent 63112f19
Branches
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ fi
# SUDO check
#
chksudo() {
echo "Checking for sudo rights for $USER..."
echo "Checking sudo rights for $USER..."
sudo -l &>/dev/null
if [ $? -ne 0 ]; then
echo -e "[sudo]" $R_"You need sudo rights to continue"$_N
......@@ -694,7 +694,7 @@ echo -e "[backup script]" $G_"Installed"$_N
# macOS specific post-install
#
if [ $HOST_OS = 'Darwin' ]; then
echo -e $P_"\n########\n"$_N
echo -e "\n########" $Y_"ATTENTION"$_N "########\n"
echo -e $Y_"Prepare your Mac to show notifications from the backup script:\n"$_N
read -p $' * Press Enter/Return to start the Script Editor
......@@ -712,7 +712,7 @@ if [ $HOST_OS = 'Darwin' ]; then
# Close the Script Editor and continue with the backup install script
# \n
" > /tmp/notification.applescript
echo 'display notification "Notifications from scripts working!"' >> /tmp/notification.applescript
echo 'display notification "Notifications from scripts are working!"' >> /tmp/notification.applescript
open -a 'Script Editor' /tmp/notification.applescript
sleep 5
......@@ -727,7 +727,7 @@ This can also be done manually in:"
read -p "Do you want to run a backup now or postpone it for later? (y/n) " initialbackup
case $initialbackup in
[Yy]* )
echo -e "[backup script]" $G_"Running..."$_N
echo -e "[backup script]" $G_"Running in background..."$_N
launchctl load $UNIT_DIR/local.comp-backup.plist &>/dev/null
launchctl kickstart gui/$(id -u)/local.comp-backup
break
......@@ -738,11 +738,11 @@ This can also be done manually in:"
;;
esac
done
echo -e $P_"\n########\n"$_N
echo -e "\n########\n"
fi
#
# Finish
#
echo -e "\nDTU Compute backup script can always be started manually with the command:"
echo -e $G_"comp-backup\n"$_N
echo -e $P_"\nDone setting up DTU Compute backup script!\n"$_N
echo -e "The script can always be started manually with the command:" $G_"comp-backup\n"$_N
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment