1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2025-02-20 18:21:34 -05:00

refactor: remove utils.sh

This commit is contained in:
xyhhx 2024-09-11 21:22:06 -04:00
parent 2e0c6a7985
commit 7c5baec747
No known key found for this signature in database
GPG Key ID: 0960B11DB1AC1C5D
3 changed files with 16 additions and 15 deletions

View File

@ -1,11 +0,0 @@
#!/bin/bash
set -eu -o pipefail
unpriv(){
sudo -u nobody "${@}"
}
dl() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null
}

View File

@ -14,9 +14,15 @@
# License for the specific language governing permissions and limitations under
# the License.
set -eu
set -eu -o pipefail
source '../common/utils.sh'
unpriv(){
sudo -u nobody "${@}"
}
dl() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null
}
# Compliance
sudo systemctl mask debug-shell.service

View File

@ -14,9 +14,15 @@
# License for the specific language governing permissions and limitations under
# the License.
set -eu
set -eu -o pipefail
source "../common/utils.sh"
unpriv(){
sudo -u nobody "${@}"
}
dl() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null
}
# Compliance
systemctl mask debug-shell.service