18 lines
642 B
Bash
Executable File
18 lines
642 B
Bash
Executable File
#!/bin/bash
|
|
|
|
##########################################################################
|
|
# Shellscript : Konfiguration PreProxy userbasiert
|
|
# Autor : Jobst Heinermann, macenterprise gmbh
|
|
# Copyright : macenterprise 2019
|
|
##########################################################################
|
|
|
|
# Variabel
|
|
user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2)
|
|
agent=/Users/$user/Library/LaunchAgents/de.ing.config_preproxy.plist
|
|
|
|
# Laden der Pre-Konfig
|
|
/usr/bin/open -gnW -a /Applications/Preproxy.app /usr/local/scripts/preproxy-configuration.plist
|
|
|
|
# LauchAgent löschen
|
|
rm $agent
|