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:
parent
2e0c6a7985
commit
7c5baec747
@ -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
|
||||
}
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user