mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2024-10-01 06:35:42 -04:00
fix uninstall exit
This commit is contained in:
parent
700016197e
commit
b203c69a3c
@ -19,7 +19,7 @@ Leverage Qubes template non-persistence to fend off malware at VM startup: Lock-
|
||||
1. In a template VM, install the service files
|
||||
```
|
||||
cd Qubes-VM-hardening
|
||||
sudo sh ./install
|
||||
sudo bash install
|
||||
```
|
||||
|
||||
2. Activate by specifying one of the following Qubes services for your VM(s)...
|
||||
@ -111,6 +111,8 @@ Some useful configurations have been supplied in /etc/default/vms:
|
||||
|
||||
* Currently the service cannot seamlessly handle 'first boot' when the private volume must be initialized. If you enabled the service on a VM before its first startup, on first start the shell will display a notice telling you to restart the VM. Subsequent starts will proceed normally.
|
||||
|
||||
* The service can be removed from the system with `cd Qubes-VM-hardening; sudo bash install --uninstall`
|
||||
|
||||
## Releases
|
||||
- v0.9.0 Add tags and rc files, protect more home scripts, reinitialize home
|
||||
- v0.8.5 Fix template detection, /etc/default/vms erasure
|
||||
|
24
install
24
install
@ -17,6 +17,7 @@ if [ "$1" = "--uninstall" ]; then
|
||||
else
|
||||
echo "Aborted."
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@ -33,29 +34,6 @@ mkdir -p /etc/default/vms
|
||||
cp -riv default/vms/* /etc/default/vms
|
||||
|
||||
|
||||
# echo
|
||||
# echo "Setup empty Firefox default profile in /etc/skel..."
|
||||
# echo "A fixed-name profile will be defined in the /home/user folder"
|
||||
# echo "whenever home is reset/initialized. This is required when"
|
||||
# echo "using vm-boot-protect features (such as ibrowse) to"
|
||||
# echo "whitelist parts of the browser configuration."
|
||||
# echo
|
||||
# read -p "Add Firefox default profile [y/N]? " ans
|
||||
# if [[ $ans == @(Y|y) ]]; then
|
||||
# mkdir -p /etc/skel/.mozilla/firefox/profile.default
|
||||
# cat <<__END1__ >/etc/skel/.mozilla/firefox/profiles.ini
|
||||
# [General]
|
||||
# StartWithLastProfile=1
|
||||
#
|
||||
# [Profile0]
|
||||
# Name=default
|
||||
# IsRelative=1
|
||||
# Path=profile.default
|
||||
# Default=1
|
||||
# __END1__
|
||||
#
|
||||
# fi
|
||||
|
||||
echo -e "\nvm-boot-protect installed!\n"
|
||||
|
||||
bash ./configure-sudo-prompt
|
||||
|
Loading…
Reference in New Issue
Block a user