mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-04 15:02:48 +02:00
fix: remove useless sudo
This commit is contained in:
parent
95126cfa57
commit
28dd40561f
|
@ -69,4 +69,4 @@ if [ "$found" = true ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Modify authorized_keys for the repositoryName: update the line with the quota and the SSH pub key
|
# 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"
|
Loading…
Reference in a new issue