mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@95557 d073be05-634f-4543-b044-5fe20cf6d1d6
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#!/bin/zsh
|
|
############################################################## {{{1 ##########
|
|
# $Author$
|
|
# $Revision$
|
|
# $Date$
|
|
# $HeadURL$
|
|
############################################################## }}}1 ##########
|
|
|
|
setopt X_Trace;
|
|
|
|
if test "${USER}" = "root"; then
|
|
if test ! -L /Library/LaunchDaemons/org.macports.texpire.plist; then
|
|
ln -s \
|
|
@PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.texpire.plist \
|
|
/Library/LaunchDaemons/org.macports.texpire.plist ;
|
|
fi;
|
|
|
|
launchctl stop org.macports.texpire
|
|
launchctl unload -w /Library/LaunchDaemons/org.macports.texpire.plist
|
|
launchctl load -w /Library/LaunchDaemons/org.macports.texpire.plist
|
|
launchctl start org.macports.texpire
|
|
else
|
|
sudo ${0};
|
|
fi;
|
|
|
|
############################################################ {{{1 ###########
|
|
# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
|
|
# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
|