From 21d48c5ae4708f84a061ddbe0078170ccc09a8e3 Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Sat, 25 Nov 2023 13:23:58 +0200 Subject: [PATCH] Update nginx-compile.sh --- compilators/debian/nginx/nginx-compile.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/compilators/debian/nginx/nginx-compile.sh b/compilators/debian/nginx/nginx-compile.sh index 8ec50aa..a7290b1 100644 --- a/compilators/debian/nginx/nginx-compile.sh +++ b/compilators/debian/nginx/nginx-compile.sh @@ -15,20 +15,20 @@ sudo ./configure --prefix=/usr/local/alphax/nginx sudo make sudo make install -sudo mkdir alphax-nginx-1.20.0 -cd alphax-nginx-1.20.0 -sudo mkdir DEBIAN -sudo mkdir usr -sudo mkdir usr/local -sudo mkdir usr/local/alphax -sudo mkdir etc/init.d +sudo mkdir $MAIN_DIR/alphax-nginx-1.20.0 +cd $MAIN_DIR/alphax-nginx-1.20.0 +sudo mkdir $MAIN_DIR/DEBIAN +sudo mkdir $MAIN_DIR/usr +sudo mkdir $MAIN_DIR/usr/local +sudo mkdir $MAIN_DIR/usr/local/alphax +sudo mkdir $MAIN_DIR/etc/init.d -sudo mv /usr/local/alphax/nginx/sbin/nginx /usr/local/alphax/nginx/sbin/alpha-nginx -sudo mv /usr/local/alphax/nginx usr/local/alphax +sudo mv /usr/local/alphax/nginx/sbin/nginx $MAIN_DIR/usr/local/alphax/nginx/sbin/alpha-nginx +sudo mv /usr/local/alphax/nginx $MAIN_DIR/usr/local/alphax sudo cp $MAIN_DIR/control DEBIAN -sudo cp etc/init.d/alphax alphax -sudo chmod +x etc/init.d/alphax +sudo cp $MAIN_DIR/etc/init.d/alphax $MAIN_DIR/alphax +sudo chmod +x $MAIN_DIR/etc/init.d/alphax ls cd ../