diff options
| author | 2025-11-16 10:18:17 +0100 | |
|---|---|---|
| committer | 2025-11-16 10:18:17 +0100 | |
| commit | e6cbb6a818eab95bff112da8e4f8db3824bc4786 (patch) | |
| tree | d54faad856e40b825255be6abfd54d754d5cde6c | |
| parent | 1f6e7b79df502d2f82ef3052ee7bdfa0d3851f33 (diff) | |
Use exec at end of scripts to replace fish process after it's done
| -rwxr-xr-x | src/git-run | 2 | ||||
| -rwxr-xr-x | src/init | 10 | ||||
| -rw-r--r-- | src/version | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/git-run b/src/git-run index c03ace8..8afed3e 100755 --- a/src/git-run +++ b/src/git-run @@ -78,4 +78,4 @@ begin end &>>$_LOG # execute parsed git command -/usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'"
\ No newline at end of file +exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'"
\ No newline at end of file @@ -103,14 +103,11 @@ function setupRepo chmod -R 700 "$repoDir" end -function runSSHDaemon +function setupSSH echo "Setting up server" # generate host keys in case mkdir -p /var/ssh/etc/ssh/ && ssh-keygen -A -f /var/ssh - - # run ssh daemon - /usr/sbin/sshd -D -e end # @@ -182,4 +179,7 @@ end # create writable log file for run script touch $_LOG && chmod 777 $_LOG -runSSHDaemon +setupSSH; or return $status + +# run ssh daemon +exec /usr/sbin/sshd -D -e
\ No newline at end of file diff --git a/src/version b/src/version index a58941b..4c295b1 100644 --- a/src/version +++ b/src/version @@ -1 +1 @@ -1.3
\ No newline at end of file +1.4-SNAPSHOT
\ No newline at end of file |
