From e1a06bebee6525a3722d9df3d97631a8b4f19f2c Mon Sep 17 00:00:00 2001 From: grez911 Date: Sun, 5 Feb 2017 15:19:07 +0300 Subject: [PATCH] Updated init.sh --- misc/init.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/misc/init.sh b/misc/init.sh index 9899d59..b0d78b1 100755 --- a/misc/init.sh +++ b/misc/init.sh @@ -76,27 +76,25 @@ echo echo echo "Moving files..." echo -mv move/exim4.conf /etc/exim4/ -mv move/exim4.filter /etc/exim4/ -mv move/mlmmj-footer-receive /usr/bin/ -cd move/foot_filter +mv /tmp/mlmmj-light-web-master/misc/move/exim4.conf /etc/exim4/ +mv /tmp/mlmmj-light-web-master/misc/move/exim4.filter /etc/exim4/ +mv /tmp/mlmmj-light-web-master/misc/move/mlmmj-footer-receive /usr/bin/ +cd /tmp/mlmmj-light-web-master/misc/move/foot_filter echo "Compiling foot_filter..." echo make echo echo "Moving files..." echo -mv foot_filter /usr/bin/ -cd ../.. -rm -rf move -cd .. +mv /tmp/mlmmj-light-web-master/misc/foot_filter/foot_filter /usr/bin/ +cd /tmp +rm -rf /tmp/mlmmj-light-web-master/misc/move rm -rf /var/www/html/* -cp -rp * /var/www/html/ -cd .. +cp -rp /tmp/mlmmj-light-web-master/* /var/www/html/ echo "Removing installation files..." echo -rm -rf mlmmj-light-web-master -rm -rf master.tar.gz +rm -rf /tmp/mlmmj-light-web-master +rm -rf /tmp/master.tar.gz echo "Setting ownership of files..." echo chown mlmmj:mlmmj -R /var/www/html