Month: March 2016
-
Self extracting zipped encrypted linux package
#!/bin/bash T=`mktemp -d /tmp/$$XXXX`;trap “rm -rf $T” EXIT SIGINT; tail -n+3 $0|openssl enc -d -aes-256-cbc|tar zx -C $T;C=`pwd`; cd $T;./_;cd $C;exit 0 build: #!/bin/bash find . -name “*~” -delete TMP=`mktemp -d /tmp/$$.XXXXX` trap “rm -rf $TMP” EXIT # Create payload tar -czf $TMP/payload –exclude=*~ ./* cd .. #?? DST=./packages/`date +%Y%m%d`/sysprep.run mkdir `dirname $DST` ( tail…