This commit is contained in:
2025-06-30 09:16:15 -07:00
parent ba693f24b8
commit 4e606f6f9b
19 changed files with 400 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Copyright (c) 2018 fithwum
# All rights reserved
echo " "
echo "INFO ! Cleaning up pt2 of script from base image."
rm -frv /debian-bullseye/debian-bullseye_pt2.sh
sleep 1
echo " "
echo "INFO ! Base image size after cleanup."
du --human-readable --summarize debian-bullseye
sleep 5
echo " "
echo "INFO ! Creating base image archive."
echo "INFO ! This may take some time."
tar -cjf debian-bullseye.tar.bz2 --directory debian-bullseye .
sleep 1
echo " "
echo "INFO ! Base image archive."
du --human-readable --summarize debian-bullseye.tar.bz2
sleep 5
echo " "
echo "INFO ! Uploading image to ftp server."
ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-bullseye.tar.bz2
sleep 1
echo " "
echo "INFO ! Removing temp files."
rm -fr debian-bullseye
rm -frv debian-bullseye.tar.bz2
echo " "
echo "INFO ! Done."
echo " "
exit