Updated init.sh

This commit is contained in:
grez911
2017-02-05 15:19:07 +03:00
parent 5b30fef582
commit e1a06bebee

View File

@@ -76,27 +76,25 @@ echo
echo echo
echo "Moving files..." echo "Moving files..."
echo echo
mv move/exim4.conf /etc/exim4/ mv /tmp/mlmmj-light-web-master/misc/move/exim4.conf /etc/exim4/
mv move/exim4.filter /etc/exim4/ mv /tmp/mlmmj-light-web-master/misc/move/exim4.filter /etc/exim4/
mv move/mlmmj-footer-receive /usr/bin/ mv /tmp/mlmmj-light-web-master/misc/move/mlmmj-footer-receive /usr/bin/
cd move/foot_filter cd /tmp/mlmmj-light-web-master/misc/move/foot_filter
echo "Compiling foot_filter..." echo "Compiling foot_filter..."
echo echo
make make
echo echo
echo "Moving files..." echo "Moving files..."
echo echo
mv foot_filter /usr/bin/ mv /tmp/mlmmj-light-web-master/misc/foot_filter/foot_filter /usr/bin/
cd ../.. cd /tmp
rm -rf move rm -rf /tmp/mlmmj-light-web-master/misc/move
cd ..
rm -rf /var/www/html/* rm -rf /var/www/html/*
cp -rp * /var/www/html/ cp -rp /tmp/mlmmj-light-web-master/* /var/www/html/
cd ..
echo "Removing installation files..." echo "Removing installation files..."
echo echo
rm -rf mlmmj-light-web-master rm -rf /tmp/mlmmj-light-web-master
rm -rf master.tar.gz rm -rf /tmp/master.tar.gz
echo "Setting ownership of files..." echo "Setting ownership of files..."
echo echo
chown mlmmj:mlmmj -R /var/www/html chown mlmmj:mlmmj -R /var/www/html