fix: remove useless sudo

This commit is contained in:
bsourisse 2023-08-27 13:28:15 +02:00 committed by Ravinou
parent 95126cfa57
commit 28dd40561f
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -69,4 +69,4 @@ if [ "$found" = true ]; then
fi
# Modify authorized_keys for the repositoryName: update the line with the quota and the SSH pub key
sudo sed -ri "s|(command=\".*${repositoryName}.*--storage-quota ).*G\",restrict .*|\\1$3G\",restrict $2|g" "$home/.ssh/authorized_keys"
sed -ri "s|(command=\".*${repositoryName}.*--storage-quota ).*G\",restrict .*|\\1$3G\",restrict $2|g" "$home/.ssh/authorized_keys"