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:
parent
5fd8ea4c50
commit
a647c22158
@ -61,6 +61,8 @@ function set_laravel_storage_permissions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function set_python_venv {
|
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
|
cd $target_dir/app/Console/Commands/SpammerProcess
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
@ -587,7 +587,7 @@ class openstackid (
|
|||||||
|
|
||||||
cron { 'InstallLaravelSchedule':
|
cron { 'InstallLaravelSchedule':
|
||||||
ensure => 'present',
|
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',
|
user => 'www-data',
|
||||||
minute => '*',
|
minute => '*',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user