Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By alphabravoc on
Hello,
My colleague wrote this little shell script that we use to take the static pages offline. Use it at your own risk.
#!/bin/sh
wget -q -mirror -p --html-extension --base=./ -k -P ./ http://example.com/drupal
cd ./example.com/drupal
cp -rf /srv/www/htdocs/example.com/drupal/modules .
cp -rf /srv/www/htdocs/example.com/drupal/themes .
find ./ -type f -exec sed -i 's/@import "\/drupal/@import "\.\./' {} \;
find ./ -maxdepth 1 -type f -exec sed -i 's/@import "\.\.\//@import "\.\//' {} \;
Thanks.