rocketeer icon indicating copy to clipboard operation
rocketeer copied to clipboard

Change owner, Operation not permitted

Open bkhrupa opened this issue 8 years ago • 2 comments

Hello,

I'm try change permission on production server, but my user not have permission to use chown command.

So, in rocketeer output i see chown failure result, but deployed successfully done!

$ rocketeer deploy

...

chown: changing ownership of `/var/www/site/releases/20160630104822/public/index.php`: Operation not permitted

...

|=> Successfully deployed release 20160630104822

...

I think that is wrong. If chown failure, deployment must be stopped.

Config

remote.php

'permissions'    => [
    'files'    => [
        'public',
    ],
    'callback' => function ($task, $file) {
        return [
            sprintf('chown -R deploy:www-data %s', $file),
        ];
    },

],

bkhrupa avatar Jun 30 '16 13:06 bkhrupa

read this, it can solve your problem https://github.com/rocketeers/rocketeer/issues/579

ardani avatar Sep 14 '16 11:09 ardani

Hello,

maybe You do not understand

if rocketeer could not change chmod, deploy process must be stopped with error

bkhrupa avatar Sep 15 '16 06:09 bkhrupa