From 0c181b64740b0c83b9063be70867cf17b6770318 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Fri, 3 Nov 2017 11:57:41 -0500 Subject: [PATCH] Set workign directory --- chef/cookbooks/metasploitable/files/sinatra/sinatra.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chef/cookbooks/metasploitable/files/sinatra/sinatra.conf b/chef/cookbooks/metasploitable/files/sinatra/sinatra.conf index 4506706..0490e14 100755 --- a/chef/cookbooks/metasploitable/files/sinatra/sinatra.conf +++ b/chef/cookbooks/metasploitable/files/sinatra/sinatra.conf @@ -2,4 +2,8 @@ description 'Run vulnerable Sinatra' author 'metasploitable3' start on runlevel [2345] -exec "/opt/sinatra/server" +chdir /opt/sinatra/ +script + echo "Starting sinatra" + /opt/sinatra/server +end script \ No newline at end of file