mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Building templates archive for Deb 8 and 9
This commit is contained in:
parent
17f9435786
commit
1ed512cf83
1 changed files with 68 additions and 7 deletions
|
@ -277,18 +277,20 @@ if [ "$CWEB_B" = true ]; then
|
||||||
fi
|
fi
|
||||||
cp /root/vesta/src/deb/latest.txt $PATH_OF_C_WEB_FOLDER_ROOT/latest.txt
|
cp /root/vesta/src/deb/latest.txt $PATH_OF_C_WEB_FOLDER_ROOT/latest.txt
|
||||||
echo "$BUILD_DATE" > $PATH_OF_C_WEB_FOLDER_ROOT/build_date.txt
|
echo "$BUILD_DATE" > $PATH_OF_C_WEB_FOLDER_ROOT/build_date.txt
|
||||||
cd $PATH_OF_C_WEB_FOLDER
|
|
||||||
|
###########
|
||||||
|
cd $PATH_OF_C_WEB_FOLDER_ROOT/debian/8
|
||||||
|
|
||||||
if [ -f "packages.tar.gz" ]; then
|
if [ -f "packages.tar.gz" ]; then
|
||||||
rm packages.tar.gz
|
rm packages.tar.gz
|
||||||
fi
|
fi
|
||||||
tar -czf packages.tar.gz packages/
|
tar -czf packages.tar.gz packages/
|
||||||
|
|
||||||
if [ -f "templates.tar.gz" ]; then
|
if [ -f "templates.tar.gz" ]; then
|
||||||
rm templates.tar.gz
|
rm templates.tar.gz
|
||||||
fi
|
fi
|
||||||
tar -czf templates.tar.gz templates/
|
tar -czf templates.tar.gz templates/
|
||||||
|
|
||||||
if [ -f "firewall.tar.gz" ]; then
|
if [ -f "firewall.tar.gz" ]; then
|
||||||
rm firewall.tar.gz
|
rm firewall.tar.gz
|
||||||
fi
|
fi
|
||||||
|
@ -303,12 +305,71 @@ if [ "$CWEB_B" = true ]; then
|
||||||
rm dovecot.tar.gz
|
rm dovecot.tar.gz
|
||||||
fi
|
fi
|
||||||
tar -czf dovecot.tar.gz dovecot/
|
tar -czf dovecot.tar.gz dovecot/
|
||||||
echo "=== All done"
|
echo "=== All done for Debian8"
|
||||||
|
###########
|
||||||
|
cd $PATH_OF_C_WEB_FOLDER_ROOT/debian/9
|
||||||
|
|
||||||
|
if [ -f "packages.tar.gz" ]; then
|
||||||
|
rm packages.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf packages.tar.gz packages/
|
||||||
|
|
||||||
|
if [ -f "templates.tar.gz" ]; then
|
||||||
|
rm templates.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf templates.tar.gz templates/
|
||||||
|
|
||||||
|
if [ -f "firewall.tar.gz" ]; then
|
||||||
|
rm firewall.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf firewall.tar.gz firewall/
|
||||||
|
|
||||||
|
if [ -f "fail2ban.tar.gz" ]; then
|
||||||
|
rm fail2ban.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf fail2ban.tar.gz fail2ban/
|
||||||
|
|
||||||
|
if [ -f "dovecot.tar.gz" ]; then
|
||||||
|
rm dovecot.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf dovecot.tar.gz dovecot/
|
||||||
|
echo "=== All done for Debian9"
|
||||||
|
###########
|
||||||
|
cd $PATH_OF_C_WEB_FOLDER_ROOT/debian/10
|
||||||
|
|
||||||
|
if [ -f "packages.tar.gz" ]; then
|
||||||
|
rm packages.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf packages.tar.gz packages/
|
||||||
|
|
||||||
|
if [ -f "templates.tar.gz" ]; then
|
||||||
|
rm templates.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf templates.tar.gz templates/
|
||||||
|
|
||||||
|
if [ -f "firewall.tar.gz" ]; then
|
||||||
|
rm firewall.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf firewall.tar.gz firewall/
|
||||||
|
|
||||||
|
if [ -f "fail2ban.tar.gz" ]; then
|
||||||
|
rm fail2ban.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf fail2ban.tar.gz fail2ban/
|
||||||
|
|
||||||
|
if [ -f "dovecot.tar.gz" ]; then
|
||||||
|
rm dovecot.tar.gz
|
||||||
|
fi
|
||||||
|
tar -czf dovecot.tar.gz dovecot/
|
||||||
|
echo "=== All done for Debian10"
|
||||||
|
##########
|
||||||
|
|
||||||
cp /root/vesta/install/vst-install-debian.sh $PATH_OF_C_WEB_FOLDER_ROOT/vst-install-debian.sh
|
cp /root/vesta/install/vst-install-debian.sh $PATH_OF_C_WEB_FOLDER_ROOT/vst-install-debian.sh
|
||||||
|
|
||||||
mkdir $PATH_OF_C_WEB_FOLDER_ROOT/tools
|
mkdir $PATH_OF_C_WEB_FOLDER_ROOT/tools
|
||||||
cp -rf /root/vesta/src/deb/for-download/tools/* $PATH_OF_C_WEB_FOLDER_ROOT/tools
|
cp -rf /root/vesta/src/deb/for-download/tools/* $PATH_OF_C_WEB_FOLDER_ROOT/tools
|
||||||
|
|
||||||
|
echo "=== All done for c subdomain ==="
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue