doc improvements, small esthetic changes, mk_archive created

This commit is contained in:
levasseur
2021-07-23 14:18:21 +02:00
parent 3696a720da
commit 47d21ad829
7 changed files with 50 additions and 21 deletions

15
mk_archive.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# That script is used to create an archive for init deployment
VERSION=$(grep "VERSION=" init.sh | cut -d'=' -f 2 | sed s/\"//g)
TMPDIR="/tmp/init-$VERSION"
mkdir $TMPDIR
cp -av conf lib modules doc init.sh README.* LICENSE $TMPDIR
tar --gzip -cvf ~/init.sh-$VERSION.tar.gz $TMPDIR
rm -rfv $TMPDIR
echo "L'archive ~/init.sh-$VERSION.tar.gz a été créé avec succès dans votre home directory."