mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Update vesta_compile.sh
This commit is contained in:
parent
69c6e910fa
commit
b168ef14d9
1 changed files with 13 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Autocompile Script for VestaCP deb Files.
|
||||
# Autocompile Script for VestaCP deb files - ver 1.0
|
||||
# Made for MyVesta fork.
|
||||
# Autocompile script borrowed from HestiaCP, special thanks to Raphael Schneeberger
|
||||
|
||||
|
@ -8,7 +8,7 @@ build_deb_package=1
|
|||
add_deb_to_apt_repo=0
|
||||
|
||||
TARGET_DEB_NAME='buster'
|
||||
DEB_VER='10'
|
||||
TARGET_DEB_VER='10'
|
||||
VESTA_VER='0.9.8-25'
|
||||
|
||||
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
|
||||
|
||||
if [ $# -gt 1 ]; then
|
||||
TARGET_DEB_NAME=$2
|
||||
fi
|
||||
|
||||
if [ $# -gt 2 ]; then
|
||||
TARGET_DEB_VER=$3
|
||||
fi
|
||||
|
||||
MAINTAINER_EMAIL='predrag@hostingpanel.dev'
|
||||
|
||||
# Set compiling directory
|
||||
|
@ -71,6 +79,8 @@ function make_deb_package {
|
|||
rm $1_$VESTA_V.deb
|
||||
fi
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue