Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update script assumes scripts can be executed (execute access) #4330

Closed
rcubetrac opened this issue Sep 6, 2013 · 3 comments
Closed

Update script assumes scripts can be executed (execute access) #4330

rcubetrac opened this issue Sep 6, 2013 · 3 comments

Comments

@rcubetrac
Copy link

Reported by daggett on 6 Sep 2013 08:52 UTC as Trac ticket #1489322

Hi

My provider has banned direct execution of scripts in the RCM's installation directory.

So when I try to execute the update script "intallto.sh /my/rcm/directory" it fails at the end saying :
-su: bin/update.sh: permission denied

The script itself can not be executed, I must execute the interpreter that will execute the script.

So I had to add the interpreter's name "php " to line 74 :
system("cd $target_dir && php bin/update.sh --version=$oldversion");

Then I had to add the same interpreter's name "php " to /my/rcm/directory/bin/update.sh on lines 149 and 157 :
149: system("php " . INSTALL_PATH . "bin/updatedb.sh --package=roundcube --version=" . $opts['version']
157: system("php " . INSTALL_PATH . 'bin/indexcontacts.sh');

I think this should work on every systems, even the ones with execution restrictions.

Bye for now,
Daggett

Migrated-From: http://trac.roundcube.net/ticket/1489322

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 21 Dec 2013 09:05 UTC

later => 1.0-stable

@rcubetrac
Copy link
Author

Comment by @thomascube on 29 Jan 2014 11:27 UTC

Changed in commit f5007ec

@rcubetrac
Copy link
Author

Status changed by @thomascube on 29 Jan 2014 11:27 UTC

new => closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant