From d9db3073b8dbb2e0c7e90617a6f050a45f60f3a8 Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 19 May 2020 21:05:27 +0200 Subject: [PATCH] Remove sudo variables ... --- .install/sys_checkOS.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.install/sys_checkOS.sh b/.install/sys_checkOS.sh index 6fc483b..4b6078c 100644 --- a/.install/sys_checkOS.sh +++ b/.install/sys_checkOS.sh @@ -28,9 +28,9 @@ done [[ -n $(grep "# ASTROPORT " ~/.bashrc) ]] && sed -i -n '/# ASTROPORT /!p' ~/.bashrc echo -e "# ASTROPORT ENVIRONMENT VARIABLE\n. /home/$YOU/.zen/ipfs/.$ipfsnodeid/profile" >> ~/.bashrc -# Export for root -[[ -n $(sudo grep "/.zen/ipfs/" /root/.bashrc) ]] && sudo sed -i -n '/\/.zen\/ipfs/!p' /root/.bashrc -[[ -n $(sudo grep "# ASTROPORT " /root/.bashrc) ]] && sudo sed -i -n '/# ASTROPORT /!p' /root/.bashrc -echo -e "# ASTROPORT ENVIRONMENT VARIABLE\n. /home/$YOU/.zen/ipfs/.$ipfsnodeid/profile" | sudo tee -a /root/.bashrc +# Export for root (obsolete) +#[[ -n $(sudo grep "/.zen/ipfs/" /root/.bashrc) ]] && sudo sed -i -n '/\/.zen\/ipfs/!p' /root/.bashrc +#[[ -n $(sudo grep "# ASTROPORT " /root/.bashrc) ]] && sudo sed -i -n '/# ASTROPORT /!p' /root/.bashrc +#echo -e "# ASTROPORT ENVIRONMENT VARIABLE\n. /home/$YOU/.zen/ipfs/.$ipfsnodeid/profile" | sudo tee -a /root/.bashrc [[ $1 != "noexec" ]] && exec bash