Fixed permissions issues on SpammerProcess

fixed permission due generating the pickle
file was not allowed.

Change-Id: I18f5a832753c393ba01cec6e3318191a1e639c1f
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2020-04-03 14:53:17 -03:00
parent 5fd8ea4c50
commit a647c22158
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,8 @@ function set_laravel_storage_permissions {
}
function set_python_venv {
chmod 0775 $target_dir/app/Console/Commands/SpammerProcess
chown :www-data $target_dir/app/Console/Commands/SpammerProcess
cd $target_dir/app/Console/Commands/SpammerProcess
python3 -m venv env
source env/bin/activate

View File

@ -587,7 +587,7 @@ class openstackid (
cron { 'InstallLaravelSchedule':
ensure => 'present',
command => "php ${projectroot}/artisan schedule:run >> /dev/null 2>&1",
command => "/usr/bin/php ${projectroot}/artisan schedule:run >> /dev/null 2>&1",
user => 'www-data',
minute => '*',
}