From 6cb1b73836c30b19022a90aa79c00e034b770f01 Mon Sep 17 00:00:00 2001 From: Julian Schneider Date: Mon, 30 Oct 2023 14:38:47 +0100 Subject: [PATCH] Chown mountpoint at installation, not at login --- src/shell-history/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell-history/install.sh b/src/shell-history/install.sh index 34bc980..9ebdba3 100644 --- a/src/shell-history/install.sh +++ b/src/shell-history/install.sh @@ -25,7 +25,6 @@ if [[ -z "\$HISTFILE_OLD" ]]; then fi export HISTFILE=/dc/shellhistory/.bash_history export PROMPT_COMMAND='history -a' -sudo chown -R $_REMOTE_USER /dc/shellhistory EOF chown -R $_REMOTE_USER $_REMOTE_USER_HOME/.bashrc @@ -33,7 +32,6 @@ chown -R $_REMOTE_USER $_REMOTE_USER_HOME/.bashrc cat << EOF >> "$_REMOTE_USER_HOME/.zshrc" export HISTFILE=/dc/shellhistory/.zsh_history export PROMPT_COMMAND='history -a' -sudo chown -R $_REMOTE_USER /dc/shellhistory EOF chown -R $_REMOTE_USER $_REMOTE_USER_HOME/.zshrc @@ -49,6 +47,8 @@ if test -f \$history_location mv \$history_location "\$history_location-old" end ln -s /dc/shellhistory/fish_history \$history_location -sudo chown -R $_REMOTE_USER \$history_location EOF chown -R $_REMOTE_USER $_REMOTE_USER_HOME/.config/ + +mkdir -p /dc/shellhistory +chown -R $_REMOTE_USER /dc/shellhistory \ No newline at end of file