Skip to content

Commit

Permalink
script to fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Nov 16, 2024
1 parent 4fc8501 commit ff739d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/migrations/2024_11_move_missing_opf_products.pl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
sub move_product_dir_to_off ($dir, $dir2, $dir3, $dir4) {
# move .sto files
print STDERR "moving $dir/$dir2/$dir3/$dir4\n";
ensure_dir_created_or_die("/srv/off/products/$dir/$dir2/$dir3");
#ensure_dir_created_or_die("/srv/off/products/$dir/$dir2/$dir3");
# if there is an existing off directory for this product, move it to deleted-off-products-codes-replaced-by-other-flavors
if (0 and -e "/srv/off/products/$dir/$dir2/$dir3/$dir4") {
print STDERR "moving existing product on OFF\n";
Expand Down Expand Up @@ -129,7 +129,7 @@ ($dir, $dir2, $dir3, $dir4)
# move images if they exist
if (-e "/srv/opf/html/images/products/other-flavors-codes/$dir$dir2$dir3$dir4") {
print STDERR "moving images from /srv/opf/html/images/products/other-flavors-codes/$dir$dir2$dir3$dir4\n";
ensure_dir_created_or_die("/srv/off/html/images/products/$dir/$dir2/$dir3");
#ensure_dir_created_or_die("/srv/off/html/images/products/$dir/$dir2/$dir3");
# if there is an existing off directory for this product, move it to deleted-off-products-codes-replaced-by-other-flavors
if (0 and -e "/srv/off/html/images/products/$dir/$dir2/$dir3/$dir4") {
print STDERR "moving existing product images on OFF\n";
Expand Down

0 comments on commit ff739d3

Please sign in to comment.