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

launch macos background script for allow popups

parent 52734a3e
No related branches found
No related tags found
No related merge requests found
...@@ -209,13 +209,10 @@ $(echo $PATH | grep -o $BIN_DIR &>/dev/null) ...@@ -209,13 +209,10 @@ $(echo $PATH | grep -o $BIN_DIR &>/dev/null)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ $SHELL == '/bin/bash' ]; then if [ $SHELL == '/bin/bash' ]; then
echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.bash_profile echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.bash_profile
source $H/.bash_profile
elif [ $SHELL == '/bin/zsh' ]; then elif [ $SHELL == '/bin/zsh' ]; then
echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.zprofile echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.zprofile
source $H/.zprofile
else else
echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.profile echo -e "\nexport PATH=$PATH:$BIN_DIR" >> $H/.profile
source $H/.profile
fi fi
fi fi
...@@ -642,7 +639,8 @@ cat > $UNIT_DIR/local.comp-backup.plist << EOF ...@@ -642,7 +639,8 @@ cat > $UNIT_DIR/local.comp-backup.plist << EOF
</plist> </plist>
EOF EOF
launchctl load $UNIT_DIR/local.comp-backup.plist launchctl load $UNIT_DIR/local.comp-backup.plist &>/dev/null
launchctl kickstart gui/$(id -u)/local.comp-backup
fi fi
elif [ $SYSTEMD = 1 ]; then elif [ $SYSTEMD = 1 ]; then
if [ -f $UNIT_DIR/$SCRIPTNAME-$RUSER.timer ]; then if [ -f $UNIT_DIR/$SCRIPTNAME-$RUSER.timer ]; then
...@@ -685,4 +683,5 @@ echo -e "[backup script]" $G_"Installed"$_N ...@@ -685,4 +683,5 @@ echo -e "[backup script]" $G_"Installed"$_N
# #
# Finish # Finish
# #
echo -e "\nDTU Compute backup script can be started manually with the command: "$G_"comp-backup\n"$_N echo -e "\nDTU Compute backup script can be started manually with the command: "$G_"comp-backup"$_N
echo -e " Start it from a new terminal session for the first time\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment