mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 03:00:29 +03:00
Get non-interactive bash env right
This commit is contained in:
parent
d5df260c88
commit
0658a9b8ac
3 changed files with 14 additions and 9 deletions
|
|
@ -27,13 +27,18 @@ end
|
|||
|
||||
execute "add-gradle-home" do
|
||||
user user
|
||||
command "echo \"export GRADLE_HOME=/opt/gradle\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep GRADLE_HOME /home/#{user}/.bashrc"
|
||||
command "echo \"export GRADLE_HOME=/opt/gradle\" >> /home/#{user}/.bsenv"
|
||||
not_if "grep GRADLE_HOME /home/#{user}/.bsenv"
|
||||
end
|
||||
execute "add-gradle-bin" do
|
||||
user user
|
||||
command "echo \"export PATH=\\$PATH:/opt/gradle/bin\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep gradle/bin /home/#{user}/.bashrc"
|
||||
command "echo \"export PATH=\\$PATH:/opt/gradle/bin\" >> /home/#{user}/.bsenv"
|
||||
not_if "grep gradle/bin /home/#{user}/.bsenv"
|
||||
end
|
||||
execute "add-bsenv" do
|
||||
user user
|
||||
command "echo \". ./bsenv \" >> /home/#{user}/.bashrc"
|
||||
not_if "grep bsenv /home/#{user}/.bashrc"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue