Update vesta_compile.sh

This commit is contained in:
dpeca 2019-08-17 16:04:48 +02:00 committed by GitHub
commit b168ef14d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Autocompile Script for VestaCP deb Files. # Autocompile Script for VestaCP deb files - ver 1.0
# Made for MyVesta fork. # Made for MyVesta fork.
# Autocompile script borrowed from HestiaCP, special thanks to Raphael Schneeberger # Autocompile script borrowed from HestiaCP, special thanks to Raphael Schneeberger
@ -8,7 +8,7 @@ build_deb_package=1
add_deb_to_apt_repo=0 add_deb_to_apt_repo=0
TARGET_DEB_NAME='buster' TARGET_DEB_NAME='buster'
DEB_VER='10' TARGET_DEB_VER='10'
VESTA_VER='0.9.8-25' VESTA_VER='0.9.8-25'
TARGET_DEB_NAME_MAIN='buster' TARGET_DEB_NAME_MAIN='buster'
@ -20,6 +20,14 @@ wait_to_press_enter=1
############### ###############
# Note: first run --apt_repo before turning add_deb_to_apt_repo=1 # Note: first run --apt_repo before turning add_deb_to_apt_repo=1
if [ $# -gt 1 ]; then
TARGET_DEB_NAME=$2
fi
if [ $# -gt 2 ]; then
TARGET_DEB_VER=$3
fi
MAINTAINER_EMAIL='predrag@hostingpanel.dev' MAINTAINER_EMAIL='predrag@hostingpanel.dev'
# Set compiling directory # Set compiling directory
@ -71,6 +79,8 @@ function make_deb_package {
rm $1_$VESTA_V.deb rm $1_$VESTA_V.deb
fi fi
dpkg-deb --build $1_$VESTA_V dpkg-deb --build $1_$VESTA_V
echo "=== Building done."
echo "=== Your .deb package is here: $BUILD_DIR/$1_$VESTA_V.deb"
} }
function add_to_repo { function add_to_repo {
@ -209,7 +219,7 @@ EOF
gpg --armor --export $MAINTAINER_EMAIL --output $MAINTAINER_EMAIL.gpg.key gpg --armor --export $MAINTAINER_EMAIL --output $MAINTAINER_EMAIL.gpg.key
press_enter "*** please copy above generated key to your clipboard and then paste it after pressing enter now ***" press_enter "*** please copy above generated key to your clipboard and then paste it after pressing enter now ***"
vi $PATH_OF_APT_REPO_ROOT/deb_signing.key vi $PATH_OF_APT_REPO_ROOT/deb_signing.key
cp $PATH_OF_APT_REPO_ROOT/deb_signing.key $PATH_OF_C_WEB_FOLDER_ROOT/deb_signing.key cp $PATH_OF_APT_REPO_ROOT/deb_signing.key $PATH_OF_C_WEB_FOLDER_ROOT/deb_signing.key
fi fi
echo "=== All done" echo "=== All done"