Update nginx-compile.sh

This commit is contained in:
Bozhidar Slaveykov 2023-11-25 13:30:21 +02:00
parent 81869afc39
commit 9d1ec319ef

View file

@ -16,28 +16,27 @@ sudo make
sudo make install sudo make install
sudo mkdir $MAIN_DIR/alphax-nginx-1.20.0 sudo mkdir $MAIN_DIR/alphax-nginx-1.20.0
cd $MAIN_DIR/alphax-nginx-1.20.0 PACKAGE_MAIN_DIR=$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 $MAIN_DIR/usr/local/alphax/nginx/sbin/alpha-nginx sudo mkdir $PACKAGE_MAIN_DIR/DEBIAN
sudo mv /usr/local/alphax/nginx $MAIN_DIR/usr/local/alphax sudo mkdir $PACKAGE_MAIN_DIR/usr
sudo cp $MAIN_DIR/control DEBIAN sudo mkdir $PACKAGE_MAIN_DIR/usr/local
sudo mkdir $PACKAGE_MAIN_DIR/usr/local/alphax
sudo mkdir $PACKAGE_MAIN_DIR/etc/init.d
sudo cp $MAIN_DIR/etc/init.d/alphax $MAIN_DIR/alphax sudo mv /usr/local/alphax/nginx $PACKAGE_MAIN_DIR/usr/local/alphax
sudo chmod +x $MAIN_DIR/etc/init.d/alphax
ls
cd ../ sudo mv $PACKAGE_MAIN_DIR/usr/local/alphax/nginx/sbin/nginx $PACKAGE_MAIN_DIR/usr/local/alphax/nginx/sbin/alpha-nginx
sudo cp $PACKAGE_MAIN_DIR/control DEBIAN
sudo dpkg-deb --build alphax-nginx-1.20.0 sudo cp $MAIN_DIR/alphax $PACKAGE_MAIN_DIR/etc/init.d/alphax
sudo dpkg --info alphax-nginx-1.20.0.deb sudo chmod +x $PACKAGE_MAIN_DIR/etc/init.d/alphax
sudo dpkg --contents alphax-nginx-1.20.0.deb
sudo mv alphax-nginx-1.20.0.deb $MAIN_DIR/dist sudo dpkg-deb --build $PACKAGE_MAIN_DIR/alphax-nginx-1.20.0
sudo dpkg --info $PACKAGE_MAIN_DIR/alphax-nginx-1.20.0.deb
sudo dpkg --contents $PACKAGE_MAIN_DIR/alphax-nginx-1.20.0.deb
sudo mv $PACKAGE_MAIN_DIR/alphax-nginx-1.20.0.deb $MAIN_DIR/dist
cd $MAIN_DIR cd $MAIN_DIR
ls ls