forked from twoconk/darwin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstalldss4
84 lines (56 loc) · 1.96 KB
/
uninstalldss4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
# Uninstall script for the Darwin Streaming Server
echo;echo Uninstalling Darwin Streaming Server;echo
if [ `uname` != "SunOS" ]; then
USERID=`id -u`
else
USERID=`/usr/xpg4/bin/id -u`
fi
if [ $USERID = 0 ]; then
## /etc/streaming
echo removing "/etc/streaming"
rm -rf /etc/streaming
## /var/streaming
echo removing "/var/streaming/readme.pdf"
rm -f /var/streaming/readme.pdf
echo removing "/usr/local/logs"
rm -rf /var/streaming/logs
echo removing "/usr/local/playlists"
rm -rf /var/streaming/playlists
echo removing "/var/streaming/AdminHtml/l"
rm -rf /var/streaming/AdminHtml/
echo removing "/var/streaming"
rmdir /var/streaming
## /usr/local/movies
echo removing "/usr/local/movies/sample.mov"
rm -f /usr/local/movies/sample.mov
echo removing "/usr/local/movies/sample_56kbit.mov"
rm -f /usr/local/movies/sample_56kbit.mov
echo removing "/usr/local/movies/sample_100kbit.mov"
rm -f /usr/local/movies/sample_100kbit.mov
echo removing "/usr/local/movies/sample_300kbit.mov"
rm -f /usr/local/movies/sample_300kbit.mov
echo removing "/usr/local/movies/sample.mp3"
rm -f /usr/local/movies/sample.mp3
echo removing "/usr/local/movies"
rmdir /usr/local/movies
## Binaries
echo removing "/usr/local/sbin/DarwinStreamingServer"
rm -f /usr/local/sbin/DarwinStreamingServer
echo removing "/usr/local/sbin/StreamingServerModules"
rm -rf /usr/local/sbin/StreamingServerModules
echo removing "/usr/local/sbin/streamingadminserver.pl"
rm -f /usr/local/sbin/streamingadminserver.pl
echo removing "/usr/local/bin/StreamingLoadTool"
rm -f /usr/local/bin/StreamingLoadTool
echo removing "/usr/local/bin/PlaylistBroadcaster"
rm -f /usr/local/bin/PlaylistBroadcaster
echo removing "/usr/local/bin/MP3Broadcaster"
rm -f /usr/local/bin/MP3Broadcaster
echo removing "/usr/local/bin/qtpasswd"
rm -f /usr/local/bin/qtpasswd
else
echo "Unable to perform uninstall"
echo "You must be root";echo
exit 1
fi