-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·29 lines (26 loc) · 1.13 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
#!/bin/bash
echo "==============================================================================="
echo " Green Scheduler"
echo "==============================================================================="
echo " AUTHOR: Written by Jordi Blasco Pallarès"
echo " CONTACT EMAIL: [email protected]"
echo " REPORTING BUGS: "
echo " Please report all bugs after reviewing project details located at"
echo " http://sourceforge.net/projects/greenscheduler/"
echo "==============================================================================="
echo
CURRENTUID=$(id -u)
if [ $CURRENTUID -ne 0 ]; then
echo "ERROR: You must be logged in as root."
echo " $(id)"
echo
exit 1
fi
echo "Coping files...."
mkdir -p /usr/local/greenscheduler
cp -pr * /usr/local/greenscheduler/
ln -s /usr/local/greenscheduler/bin/gsd /etc/init.d/gsd
ln -s /usr/local/greenscheduler/etc/greenscheduler /etc/greenscheduler
echo "Making cache directory..."
mkdir -p /var/cache/greenscheduler
echo "Installation Complete"