gitlab-ci 運行sudo命令時出錯:
$ sudo cp deploy/config/stage.ini /etc/ibd-research-tool.ini
sudo: sorry, you must have a tty to run sudo
解決:
sudo vi /etc/sudoers
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
# Defaults requiretty
註釋掉Defaults requiretty