scripts installation pour debian

This commit is contained in:
Elam Monnot
2023-02-02 09:03:34 +01:00
parent d8f0bca1fb
commit 8b7b1ee06f
3 changed files with 14 additions and 0 deletions

9
scripts/Debian11/chname Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [[ $1 == "version" ]] ; then
echo 'chname v1.0 pour debian 11'
exit 0
fi
sed -i "s/bullseye/$1/g" /etc/host{s,name}
echo 'redemarrer pour finaliser le changement du nom'
exit 0