Commit 90ae317b authored by Peter NORTHUP's avatar Peter NORTHUP

Cleans up Tunnelblick and Office share-mount better

parent 220ef9cb
......@@ -28,4 +28,6 @@ then
mkdir it-share
mount -t smbfs //$admuser@nas01.ist.local/it it-share
installer -pkg it-share/Software/02_Microsoft/office2016mac/Microsoft_Office_2016_Volume_Installer.pkg -target /
umount it-share
rm -r it-share
fi
......@@ -18,12 +18,14 @@ function enter_yesno {
}
# make sure we are in ~/.mac-scripts
mv `pwd` ~/.mac-scripts && cd .
if [ ! `pwd` != /Users/$USER/.mac-scripts ]
then
mv `pwd` ~/.mac-scripts
cd ~/.mac-scripts
fi
# hostname = "USER INPUT"
read -p "Enter hostname (e.g. 'mnadmn001'): " hostname
# username = "USER INPUT"
read -p "Enter future username: " username
# admuser = "USER INPUT"
read -p "Enter your adm username: " admuser
......@@ -43,6 +45,9 @@ echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
# set scripts as executable
# chmod 755 mount-shares.command mac_install_printers.sh
# make link to disk mount on desktop
ln -s /Users/$USER/.mac-scripts/mount-shares.command "/Users/$USER/Desktop/Mount IST Shares"
# download, install browser certificates / istwlan cert
curl -O https://git.ist.ac.at/support/software/raw/master/IST.CA.CRT.pem
......@@ -61,6 +66,7 @@ unzip Tunnelblick.app.zip > /dev/null
mv Tunnelblick.app /Applications
chown -R :wheel /Applications/Tunnelblick.app
rm Tunnelblick.app.zip
rm -rf __MACOSX
# download, install SeaFile
curl -O https://git.ist.ac.at/support/software/raw/master/Seafile.app.zip
......@@ -88,8 +94,8 @@ then
fi
# if we copied openvpn files, remove
rm "~/openvpn-$username.zip"
rm -rf "~/openvpn-$username"
rm "/Users/$USER/openvpn-$USER.zip"
rm -rf "/Users/$USER/openvpn"
# cleanup
history -c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment