yu210148/gvm_install

some ideas to make the script more pretty

LubinLew opened this issue · 0 comments

Hi,

I have some ideas to make the script more pretty.

write config file

cat > /etc/systemd/system/disable_thp.service << EOF
[Unit]
Description=Disable THP"

[Service]
Type=simple

EOF

switch user to exec lots of commands

su - gvm << EOF
touch 1.txt
touch 2.txt
touch 3.txt
EOF

use python venv not PYTHONPATH

PYTHONPATH not work on some OS, you can use venv instead.
https://docs.python.org/3/library/venv.html