Skip to content

Commit

Permalink
Tweak symlink script, add permission
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed May 16, 2022
1 parent aace7ee commit 8e11ec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion symlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
$codes = require 'codes.php';

foreach ($codes as $code) {
exec('ln -s ' . __DIR__ . '/dist/' . $code . '.html ../custom_' . $code . '.html');
exec('chown www-data: ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html'));

exec('ln -s ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html') . ' ' . escapeshellarg('../custom_' . $code . '.html'));
}

0 comments on commit 8e11ec5

Please sign in to comment.