Updated config check

This commit is contained in:
Fmstrat 2020-11-09 11:26:00 -05:00 committed by Oskar Manhart
parent f26d40dea3
commit adc893eef1

View File

@ -1,5 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -f "${HOME}/.config/winapps/winapps.conf" ] && [ ! -f "${HOME}/.winapps" ]; then
echo "You need to create a ~/.config/winapps/winapps.conf configuration. Exiting..."
exit
fi
DIR="$(dirname "$(readlink -f "$0")")" DIR="$(dirname "$(readlink -f "$0")")"
RUN="$(date)-${RANDOM}" RUN="$(date)-${RANDOM}"
@ -40,11 +45,6 @@ if [ -z "$(which xfreerdp)" ]; then
exit exit
fi fi
if [ ! -f "${HOME}/.config/winapps/winapps.conf" ] && [ ! -f "${HOME}/.winapps" ]; then
echo "You need to create a ~/.config/winapps/winapps.conf configuration. Exiting..."
exit
fi
if [ -z "${RDP_IP}" ]; then if [ -z "${RDP_IP}" ]; then
if [ -z "$(groups |grep libvirt)" ]; then if [ -z "$(groups |grep libvirt)" ]; then
echo "You are not a member of the libvirt group. Run the below then reboot." echo "You are not a member of the libvirt group. Run the below then reboot."