-aide dans les scripts
-update.sh (exemple)
-kymsu (mas - homebrew - pip)
This commit is contained in:
2018-02-15 17:10:05 +01:00
parent d6bec5fcfb
commit 7ea415b906
4 changed files with 72 additions and 0 deletions

View File

@@ -1,4 +1,27 @@
#!/bin/bash
if [ "$1" == "-h" ]; then
echo -e "\033[93mbackup-conf.sh\033[0m"
echo "Backup several files and folders:"
echo
echo " - httpd.conf"
echo " - httpd-vhosts.conf"
echo " - php.ini"
echo " - .bash_profile"
echo " - .gitconfig"
echo " - .wg++"
echo " - .nanorc, .nanosyntax"
echo " - .ssh"
echo " - .vnc"
echo " - .kymsu"
echo
echo "USAGE: backup-conf"
echo
echo " -h display this help"
echo
exit 0
fi
APACHE=$(httpd -v | grep "version" | awk '{print $3}' | awk -F/ '{print $2}')
PHP=$(php -v | grep "cli" | awk '{print $2}')