iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
main fai scripts can run outside of fai, fixup stuff
[automated-distro-installer]
/
faiserver-uninstall
1
#!/bin/bash
2
3
set -eE -o
pipefail
4
trap
'echo "
$0
:
$LINENO
:error:
\"
$BASH_COMMAND
\"
returned $?" >&2'
ERR
5
6
[[
$EUID
==
0
]]
||
exec
sudo
"
${BASH_SOURCE}
"
"$@"
7
8
9
apt-get
-y
purge $
(< /
etc
/
fai
/
fai-manually-installed-packages
)