23 Commits

Author SHA1 Message Date
70c002bff2 Set Version 2.1.0 2019-09-20 05:04:35 +02:00
9fbdea3a1d Release 2.1.0
checkout Changelog
2019-09-20 05:01:53 +02:00
7fd11f9cd6 ready for v2.1.0 2019-09-20 04:59:23 +02:00
d34f7a39bd mv Changelog
resolve issue #26
2019-09-20 04:47:32 +02:00
1af13587dc Update README.md 2019-09-20 04:40:14 +02:00
e0262554ce Merge pull request #25 from fossabot/master
Add license scan report and status
2019-09-20 04:39:17 +02:00
0caa4f6af2 README: add PGP shield 2019-09-18 23:17:01 +02:00
67be4705a5 README: add shields for Release and License 2019-09-18 23:00:46 +02:00
2a3aa53d2f Add license scan report and status
Signed-off-by: fossabot <badges@fossa.io>
2019-09-04 10:33:31 -07:00
df734f1f34 Merge branch 'config-as-param' into develop 2019-07-13 21:04:34 +02:00
2ac2fd9cd2 finisch custom config option 2019-07-13 21:04:19 +02:00
90926de1d6 add clear_config func() 2019-07-13 21:03:30 +02:00
189fd6d56c read custom config file 2019-07-13 20:57:25 +02:00
ff5d90c312 catch --config param 2019-07-13 20:53:04 +02:00
ade9e795b6 Merge branch 'print-version-help' into develop 2019-07-13 20:50:28 +02:00
e26f391b49 add help menue (resolve #24) 2019-07-13 20:47:24 +02:00
3643b745ae update dev script set_version
now also has to update the output of --version|-V
2019-07-13 20:37:01 +02:00
f5db5a154d just work normal if no argument is given 2019-07-13 20:34:45 +02:00
3149285ab9 Add Section "Help & Info" 2019-07-13 20:34:07 +02:00
db0ae5e4fe fix dev script
use system variable EDITOR to start the default editor
2019-07-13 20:06:14 +02:00
18b42628a0 restruct config 2018-06-02 22:49:54 +02:00
f809343015 report corect meaning 2018-06-01 01:56:41 +02:00
4cb8816cc1 notes, smal fix 2018-05-22 12:46:20 +02:00
10 changed files with 125 additions and 31 deletions

View File

@ -30,3 +30,13 @@
* restructure code * restructure code
* use proj templates * use proj templates
* some help scripts * some help scripts
2019-09-20 - 2.1.0
* fixes
- filesystem_extract: filesystem_get_type
- update dev scripts
- work without arguments
* check_update: acuret message
* restruct sample config
* add "Help & Info" menue/section (#24) (#20)
* --config | custom config (#25)

View File

@ -1,6 +1,6 @@
Package: remaster Package: remaster
Source: remaster Source: remaster
Version: 2.0.4 Version: 2.1.0
Architecture: all Architecture: all
Maintainer: 6543 <6543@obermui.de> Maintainer: 6543 <6543@obermui.de>
Installed-Size: <SIZE> Installed-Size: <SIZE>

View File

@ -1,5 +1,9 @@
# remaster [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![GitHub release](https://img.shields.io/github/v/release/6543/remaster.svg)](https://github.com/6543/remaster/releases/latest)
[![PGP Sig](https://img.shields.io/keybase/pgp/6543)](https://mh.obermui.de/publickey.gpg)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2F6543%2Fremaster.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2F6543%2Fremaster?ref=badge_shield)
# remaster
## Description ## Description
@ -30,3 +34,7 @@ The aim of this Project is to create a daemon for a server, witch update live sy
- Ubuntu/Debian - Ubuntu/Debian
- Desinfect17 - Desinfect17
- one config file - one config file
## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2F6543%2Fremaster.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2F6543%2Fremaster?ref=badge_large)

2
doc/notes Normal file
View File

@ -0,0 +1,2 @@
initrd:
https://help.ubuntu.com/community/LiveCDCustomization#Removing_the_.28Casper.29_Autologina

View File

@ -9,16 +9,17 @@ date=`date +%Y-%m-%d`
#nummer #nummer
sed -i "/#@version\ /c\#@version\ $version_sed" src/remaster.sh sed -i "/#@version\ /c\#@version\ $version_sed" src/remaster.sh
sed -i "/echo\ Remaster\ /c\ \ \ \ \ \ \ \ \ \ echo\ Remaster\ $version_sed" src/remaster.sh
#datum #datum
sed -i "/#@date\ /c\#@date\ $date" src/remaster.sh sed -i "/#@date\ /c\#@date\ $date" src/remaster.sh
} }
[ -e "changes/remaster.md" ] && { [ -e "Changelog.md" ] && {
echo >> changes/remaster.md echo >> Changelog.md
echo $date - $version >> changes/remaster.md echo $date - $version >> Changelog.md
editor changes/remaster.md $EDITOR Changelog.md
} }
[ -f "DEBIAN/control" ] && { [ -f "DEBIAN/control" ] && {

View File

@ -1,36 +1,39 @@
#cfg
######################################################### #########################################################
## sample-config rename it to config.cfg after changes ## ## sample-config rename it to config.cfg after changes ##
######################################################### #########################################################
#CD/DVD ## Quelle der Project CD/DVD
#entweder iso_source oder squashfs_path alls quelle iso_source="/data/local/Desinfect_Remaster/tmp/desinfect-2017.iso"
# -> bei iso gen erforderlich!
iso_source="/data/remaster/desinfect-2017.iso" ## Pfad zum gepakten Live System
#destination optinal ## (kann anstat einer ISO auch als Quelle dienen, dann aber auch zwingend als Ziel)
iso_aim="/data/remaster/result/custom_desinfect_`date '+%Y-%m-%d'`.iso" # squashfs_path="/data/local/Desinfect_Remaster/tmp/filesystem.squashfs"
## Ziel, Lable der zu erstellenden CD/DVD
iso_aim="/data/local/Desinfect_Remaster/tmp/custom_desinfect_`date '+%Y-%m-%d'`.iso"
iso_lable="DESINFECT_`date '+%Y-%m-%d'`" iso_lable="DESINFECT_`date '+%Y-%m-%d'`"
#Filesystem (for pxe)
#entweder iso_source oder squashfs_path alls quelle
squashfs_path="/data/remaster/result/filesystem.squashfs"
#Network ## Netzwerk Sinstellungen
proxy_host="proxy.local" ## Proxy:
proxy_port="8080" # proxy_host="10.40.8.108"
domain="local" # proxy_port="8080"
nameserver="10.x.x.2,10.x.x.1" domain="fritz.box"
nameserver="10.40.255.254"
#remaster_script ## Project / Distro
## Aktuell unterstützt: debian; ubuntu; ubuntu.14.04; ubuntu.16.04; desinfect.17
project="desinfect.17" project="desinfect.17"
#LOG ## LOG Einstellungen
log_file="/data/remaster/logs/`date '+%Y-%m-%d'`.log" ## log_file ist optionall
log_mail_source="desinfect@email.clocal" log_file="/data/local/Desinfect_Remaster/tmp/logs/`date '+%Y-%m-%d'`.log"
log_mail_smtp="smtp.mail.local:25" ## Senden mit sendmail einen Report
log_mail_aim="6543@email.clocal" # log_mail_source="desinfect@email.clocal"
log_mail_subject="Desinfect_Remaster" # log_mail_smtp="smtp.mail.local:25"
# log_mail_aim="6543@email.clocal"
# log_mail_subject="Desinfect_Remaster"
#Sonstiges #Sonstiges
tools_list="xrdp clamav nano htop nmon iftop tmux dsniff nmap openssh-server tightvncserver rsync e2fsprogs foremost gddrescue recoverjpeg safecopy sleuthkit testdisk arp-scan" tools_list="xrdp clamav nano htop nmon iftop tmux dsniff nmap openssh-server tightvncserver rsync e2fsprogs foremost gddrescue recoverjpeg safecopy sleuthkit testdisk arp-scan"

View File

@ -7,7 +7,7 @@ function check_update() {
if curl https://raw.githubusercontent.com/6543/remaster/master/changes/remaster.md | diff - <(zcat <ROOTDIR>/usr/share/doc/remaster/changelog.gz ); then if curl https://raw.githubusercontent.com/6543/remaster/master/changes/remaster.md | diff - <(zcat <ROOTDIR>/usr/share/doc/remaster/changelog.gz ); then
echo 'INFO: Programm Aktuell' echo 'INFO: Programm Aktuell'
else else
echo 'WARNUNG: neue Version verfügbar' echo 'WARNUNG: Ausgeführte Version entspricht nicht dem offiziellen Release'
fi fi
} }

35
src/func/clear_config Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
#remaster lib
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
#check_config
function clear_config() {
## Source & Aim options
iso_source=
squashfs_path=
iso_aim=
iso_lable=
## network
proxy_host=
proxy_port=
domain=
nameserver=
## Project / Distro
project=
## LOG Settings
log_file=
log_mail_source=
log_mail_smtp=
log_mail_aim=
log_mail_subject=
}
#this func is standalone executable
[ -n "$1" ] && {
clear_config $@
}

View File

@ -2,6 +2,9 @@
#remaster lib #remaster lib
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; } [ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
#dependency
source <LIBDIR>/func/filesystem_get_type
#filesystem_extract [filesystem_img_source] [chroot_path] #filesystem_extract [filesystem_img_source] [chroot_path]
function filesystem_extract() { function filesystem_extract() {
echo "extract filesystem ..." echo "extract filesystem ..."

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#@version 2.0.4 #@version 2.1.0
#@autor 6543@obermui.de #@autor 6543@obermui.de
#@date 2018-05-22 #@date 2019-09-20
#@licence GNUv3 #@licence GNUv3
##################################################################################### #####################################################################################
@ -43,6 +43,38 @@ fi
fi fi
} }
#####################################################################################
################## H e l p & I n f o ##############################################
#####################################################################################
case $(echo $1 | tr -d '-') in
'') ;;
version|V)
echo Remaster 2.1.0
exit 0
;;
config|c)
if [ -f "$2" ]; then
source <LIBDIR>/func/clear_config
source "$2"
else
echo "ERROR Config \"$2\" not found"
exit 1
fi
else
;;
*)
echo 'Remaster update Live Systems'
echo ' more information at: https://github.com/6543/remaster/'
echo ''
echo ' --version|-V show current version'
echo ' --config|-c <config> run remaster with custom config'
exit 0
;;
esac
##################################################################################### #####################################################################################
################## F u n c t i o n s ################################################ ################## F u n c t i o n s ################################################
##################################################################################### #####################################################################################