fix path to fish
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
if ! cat /etc/passwd | grep -E "^user"
|
if ! cat /etc/passwd | grep -E "^user"
|
||||||
echo "User was not created correctly. Creating user..."
|
echo "User was not created correctly. Creating user..."
|
||||||
useradd -m -s /bin/fish user
|
useradd -m -s /usr/bin/fish user
|
||||||
if test ! -e /etc/sudoers.d/user.conf
|
if test ! -e /etc/sudoers.d/user.conf
|
||||||
echo "Setting sudo permissions"
|
echo "Setting sudo permissions"
|
||||||
mkdir -p /etc/sudoers.d/
|
mkdir -p /etc/sudoers.d/
|
||||||
@@ -18,12 +18,12 @@ function resume
|
|||||||
if sudo -u user tmux has-session -t 0
|
if sudo -u user tmux has-session -t 0
|
||||||
if sudo -u user tmux ls | grep -E "^0.*attached)"
|
if sudo -u user tmux ls | grep -E "^0.*attached)"
|
||||||
echo "The default tmux session has been attached, dropping you to a normal shell."
|
echo "The default tmux session has been attached, dropping you to a normal shell."
|
||||||
cd /home/user && sudo -u user /bin/fish
|
cd /home/user && sudo -u user /usr/bin/fish
|
||||||
else
|
else
|
||||||
sudo -u user tmux attach -t 0
|
sudo -u user tmux attach -t 0
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sudo -u user tmux new-session -c /home/user /bin/fish
|
sudo -u user tmux new-session -c /home/user /usr/bin/fish
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ if test -e /workspace/daemon.sock
|
|||||||
echo "Manager capability is detected. Type 'bubble' for help."
|
echo "Manager capability is detected. Type 'bubble' for help."
|
||||||
end
|
end
|
||||||
|
|
||||||
if test ! -e /bin/docker
|
if test ! -e /usr/bin/docker
|
||||||
echo "Docker is not installed. Type 'install-docker' to install if needed."
|
echo "Docker is not installed. Type 'install-docker' to install if needed."
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -15,8 +15,8 @@ function logout
|
|||||||
end
|
end
|
||||||
|
|
||||||
function install-docker
|
function install-docker
|
||||||
if test -e /bin/docker
|
if test -e /usr/bin/docker
|
||||||
echo "Docker is already present at /bin/docker."
|
echo "Docker is already present at /usr/bin/docker."
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
echo "Installing docker in 3s."
|
echo "Installing docker in 3s."
|
||||||
|
|||||||
Reference in New Issue
Block a user