From: Guillaume Pellerin Date: Mon, 22 Apr 2024 10:24:59 +0000 (+0200) Subject: py3 X-Git-Tag: 4.0.0~50 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5bf165ce0d5a7ebec7dac52e23e973231c603f5e;p=telecaster-server.git py3 --- diff --git a/bin/publishing/telecaster_master-ae.sh b/bin/publishing/telecaster_master-ae.sh index 10287bd..a062abf 100755 --- a/bin/publishing/telecaster_master-ae.sh +++ b/bin/publishing/telecaster_master-ae.sh @@ -20,12 +20,12 @@ emails="webmaster@parisson.com,jeannot@parisson.com" subject="TeleCaster remux ($departement)" bwlimit=20000 -python $telecaster_server/bin/mastering/mastering.py --nvidia --dir $media_dir --log $mastering_log +python3 $telecaster_server/bin/mastering/mastering.py --nvidia --dir $media_dir --log $mastering_log rsync -auLKr --bwlimit=$bwlimit --include="*/" --include="$year/**" --include="$year2/**" --exclude="*.webm" --exclude="@eaDir" $media_dir $media_server:$server_media_dir ssh $app_server "docker compose -f $app_path/docker-compose.yml -f $app_path/env/prod.yml exec -T app /srv/app/manage.py teleforma-import-conferences-2 $organization $department $import_log" -python $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails +python3 $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails diff --git a/bin/publishing/telecaster_master-crfpa-mp4-staging.sh b/bin/publishing/telecaster_master-crfpa-mp4-staging.sh index 54343bf..655c172 100755 --- a/bin/publishing/telecaster_master-crfpa-mp4-staging.sh +++ b/bin/publishing/telecaster_master-crfpa-mp4-staging.sh @@ -16,7 +16,7 @@ emails="webmaster@parisson.com,jeannot@parisson.com" subject="TeleCaster remux (CRFPA)" bwlimit=20000 -python $telecaster_server/bin/mastering/mastering.py --nvidia --dir $local_media_dir --log $mastering_log +python3 $telecaster_server/bin/mastering/mastering.py --nvidia --dir $local_media_dir --log $mastering_log #find $backup_dir -type d -exec chmod 755 {} \; #find $backup_dir -type f -exec chmod 644 {} \; @@ -25,6 +25,6 @@ rsync -auLKr --bwlimit=$bwlimit --include="*/" --include="$year/**" --exclude="* ssh $app_server "docker compose -f $app_path/docker-compose.yml -f $app_path/env/prod.yml exec -T app /srv/app/manage.py teleforma-import-conferences-2 $organization $department $server_import_log" -python $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails +python3 $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails diff --git a/bin/publishing/telecaster_master-crfpa-mp4.sh b/bin/publishing/telecaster_master-crfpa-mp4.sh index b5853af..874b428 100755 --- a/bin/publishing/telecaster_master-crfpa-mp4.sh +++ b/bin/publishing/telecaster_master-crfpa-mp4.sh @@ -16,7 +16,7 @@ emails="webmaster@parisson.com,jeannot@parisson.com" subject="TeleCaster remux (CRFPA)" bwlimit=20000 -python $telecaster_server/bin/mastering/mastering.py --nvidia --dir $local_media_dir --log $mastering_log +python3 $telecaster_server/bin/mastering/mastering.py --nvidia --dir $local_media_dir --log $mastering_log #find $backup_dir -type d -exec chmod 755 {} \; #find $backup_dir -type f -exec chmod 644 {} \; @@ -25,6 +25,6 @@ rsync -auLKr --bwlimit=$bwlimit --include="*/" --include="$year/**" --exclude="* ssh $app_server "docker compose -f $app_path/docker-compose.yml -f $app_path/env/prod.yml exec -T app /srv/app/manage.py teleforma-import-conferences-2 $organization $department $server_import_log" -python $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails +python3 $telecaster_server/bin/messaging/mail_msg.py $subject $tmp_log $emails diff --git a/bin/publishing/telecaster_master-pro.sh b/bin/publishing/telecaster_master-pro.sh index e9e04b1..66f0457 100755 --- a/bin/publishing/telecaster_master-pro.sh +++ b/bin/publishing/telecaster_master-pro.sh @@ -18,7 +18,7 @@ for y in `seq $(($year)) $(($year+1))`; do server_media_dir="/mnt/prob-videos/Pre-Barreau/Pro-Barreau/Final/$y/" archives_media_dir="/home/telecaster/archives/Pre-Barreau/Pro-Barreau/$y/" - python $telecaster_server/bin/mastering/mastering.py --nvidia --auto-_offset --dir $archives_media_dir --log $mastering_log + python3 $telecaster_server/bin/mastering/mastering.py --nvidia --auto-_offset --dir $archives_media_dir --log $mastering_log chmod -fR 664 $local_media_dir; chmod -fR +rX $local_media_dir rsync -aquLKP --bwlimit=15000 --delete --exclude="@eaDir" $local_media_dir $server:$server_media_dir