Hi All,
I wonder if someone may be able to point me in the right direction
with an issue I'm having.
I inherited an app and the staging was pointed to the previous dev's
server. So I updated the deploy/staging.rb file and ran
cap staging deploy:setup
but failed with
* executing "sudo -p 'sudo password: ' usermod --gid
app_scan_staging --home /var/www/scan_staging app_scan_staging"
servers: ["
scandesign.com"]
[
scandesign.com] executing command
** [out ::
scandesign.com] sudo: usermod: command not found
command finished
failed: "sh -c 'sudo -p '\\''sudo password: '\\'' usermod --gid
app_scan_staging --home /var/www/scan_staging app_scan_staging'" on
scandesign.com
I went into my server as the user that's set in the deploy.rb which is
set :user, "scandesignwebsite"
and saw that usermod wasn't found. So I added /usr/sbin to that
user's path
[scandesignwebsite@app01 ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/scandesignwebsite/
bin:/usr/sbin
I then ran the failing command manually with no problem
[scandesignwebsite@app01 ~]$ sudo usermod --gid app_scan_staging --
home /var/www/scan_staging app_scan_staging
Password:
[scandesignwebsite@app01 ~]$
However, when I try to run cap staging deploy:setup again it still
fails because of usermod
And here are the versions I'm running at the moment
greg-pedersons-computer-2:scandesign gspederson$ cap --version
Capistrano v2.5.18
greg-pedersons-computer-2:scandesign gspederson$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin9]
Thanks in advance for your help.
Greg