78a903b1f7
- New refactor allow qubuntu to share most of Debian's codebase - Installation now more closely mimiks Debian's installation methods - Added a shared functions lib named distributions.sh - Any portions of Whonix that may need to be updatable have been moved to a new package named qubes-whonix which will be updatable via Debian package manager. qubes-whonix is also added as part of installation process
41 lines
1.4 KiB
Bash
Executable File
41 lines
1.4 KiB
Bash
Executable File
#!/bin/bash -e
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
|
|
|
source "${SCRIPTSDIR}/vars.sh"
|
|
source "${SCRIPTSDIR}/distribution.sh"
|
|
|
|
##### '-------------------------------------------------------------------------
|
|
debug ' Whonix post installation cleanup'
|
|
##### '-------------------------------------------------------------------------
|
|
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Restoring Whonix apt-get'
|
|
#### '--------------------------------------------------------------------------
|
|
pushd "${INSTALLDIR}/usr/bin"
|
|
{
|
|
rm -f apt-get;
|
|
cp -p apt-get.anondist apt-get;
|
|
}
|
|
popd
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Restoring Whonix resolv.conf'
|
|
#### '--------------------------------------------------------------------------
|
|
pushd "${INSTALLDIR}/etc"
|
|
{
|
|
rm -f resolv.conf;
|
|
cp -p resolv.conf.anondist resolv.conf;
|
|
}
|
|
popd
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Removing files created during installation that are no longer required'
|
|
#### '--------------------------------------------------------------------------
|
|
rm -rf "${INSTALLDIR}/home.orig/user/Whonix"
|
|
rm -rf "${INSTALLDIR}/home.orig/user/whonix_binary"
|
|
rm -f "${INSTALLDIR}/home.orig/user/whonix_fix"
|
|
rm -f "${INSTALLDIR}/home.orig/user/whonix_build.sh"
|
|
rm -f "${INSTALLDIR}/etc/sudoers.d/whonix-build"
|
|
rm -f "${TMPDIR}/etc/sudoers.d/whonix-build"
|