mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Linux installer builds...
This commit is contained in:
parent
2edaf0588a
commit
76638aae76
3 changed files with 6 additions and 3 deletions
|
@ -52,6 +52,7 @@ case "$system" in
|
||||||
cp -fp 'ext/installfiles/linux/init.d/zerotier-one' 'build-installer/etc/init.d'
|
cp -fp 'ext/installfiles/linux/init.d/zerotier-one' 'build-installer/etc/init.d'
|
||||||
|
|
||||||
targ="ZeroTierOneInstaller-linux-${machine}-${vmajor}_${vminor}_${revision}"
|
targ="ZeroTierOneInstaller-linux-${machine}-${vmajor}_${vminor}_${revision}"
|
||||||
|
# Use gzip in Linux since some minimal Linux systems do not have bunzip2
|
||||||
rm -f build-installer-tmp.tar.gz
|
rm -f build-installer-tmp.tar.gz
|
||||||
cd build-installer
|
cd build-installer
|
||||||
tar -cf - * | gzip -9 >../build-installer-tmp.tar.gz
|
tar -cf - * | gzip -9 >../build-installer-tmp.tar.gz
|
||||||
|
@ -60,6 +61,7 @@ case "$system" in
|
||||||
cat ext/installfiles/linux/install.tmpl.sh build-installer-tmp.tar.gz >$targ
|
cat ext/installfiles/linux/install.tmpl.sh build-installer-tmp.tar.gz >$targ
|
||||||
chmod 0755 $targ
|
chmod 0755 $targ
|
||||||
rm -f build-installer-tmp.tar.gz
|
rm -f build-installer-tmp.tar.gz
|
||||||
|
ls -l $targ
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -86,6 +88,7 @@ case "$system" in
|
||||||
cat ext/installfiles/mac/install.tmpl.sh build-installer-tmp.tar.bz2 >$targ
|
cat ext/installfiles/mac/install.tmpl.sh build-installer-tmp.tar.bz2 >$targ
|
||||||
chmod 0755 $targ
|
chmod 0755 $targ
|
||||||
rm -f build-installer-tmp.tar.bz2
|
rm -f build-installer-tmp.tar.bz2
|
||||||
|
ls -l $targ
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -45,9 +45,9 @@ fi
|
||||||
|
|
||||||
echo 'Extracting files...'
|
echo 'Extracting files...'
|
||||||
if [ $dryRun -gt 0 ]; then
|
if [ $dryRun -gt 0 ]; then
|
||||||
echo ">> dry run: tail -c +$blobStart \"$scriptPath\" | bunzip2 -c | tar -xvop -C / -f -"
|
echo ">> dry run: tail -c +$blobStart \"$scriptPath\" | gunzip -c | tar -xvop -C / -f -"
|
||||||
else
|
else
|
||||||
tail -c +$blobStart "$scriptPath" | bunzip2 -c | tar -xvop -C / -f -
|
tail -c +$blobStart "$scriptPath" | gunzip -c | tar -xvop -C / -f -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $dryRun -eq 0 -a ! -d "/var/lib/zerotier-one" ]; then
|
if [ $dryRun -eq 0 -a ! -d "/var/lib/zerotier-one" ]; then
|
||||||
|
|
|
@ -49,6 +49,6 @@ installer: one FORCE
|
||||||
./buildinstaller.sh
|
./buildinstaller.sh
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OBJS) file2lz4c zerotier-* zt1-*-install installer-build build-ZeroTierUI-*
|
rm -rf $(OBJS) zerotier-* build-* ZeroTierOneInstaller-*
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue