This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
bash-shell-host/all/archive/chromium.inst

26 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

#!/bin/bash
module_load notify
_ch=$(command -v _chromium)
if [[ $_ch ]]; then
ch=$(dirname "$_ch")/chromium
## if chromium exits probably an update to so move again
msg="new version availabe, run: sudo mv $ch $_ch"
[[ -f $ch ]] && llog $msg && notify-send $msg
export CHROME_CONFIG_HOME="/opt/chromium"
# chmod +x $BASH_SHELL_HOST/all/modules/chromium.sh
ln -sf $BASH_SHELL_HOST/all/modules/chromium.sh /opt/bin/chromium
llog "chromium sucessfully set up on $HOSTNAME"
login_notify "chromium sucessfully set up on $HOSTNAME"
else
# echo no _chromium
ch=$(command -v chromium)
if [[ $ch ]];then
llog "chromium availabe, need to run this command and log in again"
login_notify "chromium availabe but need to run this command and log in again"
llog "sudo mv $ch $(dirname $ch)/_chromium"
login_notify "sudo mv $ch $(dirname $ch)/_chromium"
else
llog "Warning: ungoogled chromimum not installed on $HOSTNAME"
login_notify "Warning: ungoogled chromimum not installed on $HOSTNAME"
fi
fi