forked from mix-php/mix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
42 lines (35 loc) · 1.1 KB
/
install.sh
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
#!/bin/bash
dirname=$(cd `dirname $0`; pwd)
httpd_bin="/usr/local/bin/mix-httpd"
crontab_bin="/usr/local/bin/mix-crontab"
daemon_bin="/usr/local/bin/mix-daemon"
websocketd_bin="/usr/local/bin/mix-websocketd"
httpd_path="${dirname}/bin/mix-httpd"
crontab_path="${dirname}/bin/mix-crontab"
daemon_path="${dirname}/bin/mix-daemon"
websocketd_path="${dirname}/bin/mix-websocketd"
echo "rm -rf $httpd_bin"
rm -rf $httpd_bin
echo "rm -rf $crontab_bin"
rm -rf $crontab_bin
echo "rm -rf $daemon_bin"
rm -rf $daemon_bin
echo "rm -rf $websocketd_bin"
rm -rf $websocketd_bin
echo "ln -s $httpd_path $httpd_bin"
ln -s $httpd_path $httpd_bin
echo "ln -s $crontab_path $crontab_bin"
ln -s $crontab_path $crontab_bin
echo "ln -s $daemon_path $daemon_bin"
ln -s $daemon_path $daemon_bin
echo "ln -s $websocketd_path $websocketd_bin"
ln -s $websocketd_path $websocketd_bin
echo "chmod 777 $httpd_path"
chmod 777 $httpd_path
echo "chmod 777 $crontab_path"
chmod 777 $crontab_path
echo "chmod 777 $daemon_path"
chmod 777 $daemon_path
echo "chmod 777 $websocketd_path"
chmod 777 $websocketd_path
echo "Successful install to \"/usr/local/bin\""