9 Commits

Author SHA1 Message Date
1a301100b7 hotfix-2.0.2 2018-05-13 00:36:05 +02:00
b3894fedc9 hotfix-2.0.2 2018-05-13 00:33:39 +02:00
d2f7a45d6c hotfix-2.0.2 2018-05-13 00:30:53 +02:00
cdd40d5195 Merge branch 'feature-check-update' into develop 2018-05-13 00:05:14 +02:00
a2517232a1 add feature check_update 2018-05-13 00:05:02 +02:00
66372fadcc add update check 2018-05-13 00:02:09 +02:00
263587222e spelling 2018-05-12 23:44:00 +02:00
57b2383ef3 spelling 2018-05-12 23:12:17 +02:00
3a3083cda8 Merge branch 'release-2.0.0' into develop
release-2.0.0
2018-05-12 23:06:09 +02:00
6 changed files with 39 additions and 9 deletions

View File

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

View File

@ -104,6 +104,7 @@ function build-deb() {
version="`cat build/DEBIAN/control | grep Version | cut -d " " -f 2`" version="`cat build/DEBIAN/control | grep Version | cut -d " " -f 2`"
arch="`cat build/DEBIAN/control | grep Arch | cut -d " " -f 2`" arch="`cat build/DEBIAN/control | grep Arch | cut -d " " -f 2`"
[ -f "release/remaster_"$version"_"$arch".deb" ] && rm "release/remaster_"$version"_"$arch".deb" [ -f "release/remaster_"$version"_"$arch".deb" ] && rm "release/remaster_"$version"_"$arch".deb"
mkdir -p release
mv -v "build.deb" "release/remaster_"$version"_"$arch".deb" mv -v "build.deb" "release/remaster_"$version"_"$arch".deb"
} }

View File

@ -11,5 +11,10 @@
* add feature build debian packages * add feature build debian packages
* add Doc "Server Bedienung" * add Doc "Server Bedienung"
* split functions * split functions
* seperte config into /etc/remaster/ * separate config into /etc/remaster/
2018-05-13 - 2.0.1
* Update-Prüfmechanismus #15
2018-05-13 - 2.0.2
* hotfix-2.0.2 ( create release folder if not exist )

View File

@ -3,3 +3,9 @@
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; } [ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
#beginn func #beginn func
#this func is standalone executable
[ -n "$1" ] && {
check_user
}

17
src/func/check_update Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#remaster lib
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
#check_update
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
echo 'REMASTER: Aktuell'
else
echo 'REMASTER: Warning: neue Version verfügbar'
fi
}
#this func is standalone executable
[ -n "$1" ] && {
check_update
}

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#@version 2.0.0 #@version 2.0.2
#@autor 6543@obermui.de #@autor 6543@obermui.de
#@date 2018-05-12 #@date 2018-05-13
#@licence GNUv3 #@licence GNUv3
##################################################################################### #####################################################################################
@ -90,6 +90,8 @@ function main_renew() {
check_dependency check_dependency
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
check_update | tee -a "$log_file"
[ "$distro" != "" ] && distro="_$distro" [ "$distro" != "" ] && distro="_$distro"
# 2. Entpacke ISO # 2. Entpacke ISO
@ -237,6 +239,8 @@ function main_update_pxe() {
check_user check_user
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
check_update | tee -a "$log_file"
check_dependency check_dependency
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
@ -357,6 +361,8 @@ function main_update_iso() {
check_user check_user
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
check_update | tee -a "$log_file"
check_dependency check_dependency
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
@ -465,11 +471,6 @@ function main_update_iso() {
on_exit 0 on_exit 0
} }
#remaster.sh update
function main_update() {
main_update_pxe
}
##################################################################################### #####################################################################################
################## F u n c t i o n s ################################################ ################## F u n c t i o n s ################################################
##################################################################################### #####################################################################################