Adding self installation command for fabrica

This commit is contained in:
2021-03-23 10:47:39 +01:00
parent 740a8de4a2
commit b360760855
120 changed files with 301 additions and 164 deletions

View File

@ -0,0 +1,29 @@
#!/bin/sh
set -xe
source /root/provisioning/common.sh
removePkg()
{
apk del --no-cache $1
return $?
}
cleanProv()
{
rm -rf /root/provisioning
return $?
}
for pkg in ${PKG_TO_REMOVE}
do
removePkg ${pkg}
if [ $? -ne 0 ]
then
echo "Warning : removing package ${pkg} failed with code $?"
fi
done
cleanProv
exit $?