Skip to main content

First transfer the drupal-8.8.x.tar.gz file to your directory

Via your ssh program (for us Terminal on OSX), enter the path to the directory where you transferred the drupal-8.8.x file

gunzip -c drupal-8.8.0.tar.gz | tar xopf -

rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0.tar.gz

rm -rf /var/www/vhosts/example.com/subdir/core
; rm -rf /var/www/vhosts/example.com/subdir/modules
; rm -rf /var/www/vhosts/example.com/subdir/profiles
; rm -rf /var/www/vhosts/example.com/subdir/sites
; rm -rf /var/www/vhosts/example.com/subdir/themes
rm -rf /var/www/vhosts/example.com/subdir/vendor
rm -rf /var/www/vhosts/example.com/subdir/autoload.php
; rm -rf /var/www/vhosts/example.com/subdir/composer.json
rm -rf /var/www/vhosts/example.com/subdir/composer.lock
rm -rf /var/www/vhosts/example.com/subdir/example.gitignore
rm -rf /var/www/vhosts/example.com/subdir/index.php
rm -rf /var/www/vhosts/example.com/subdir/update.php
rm -rf /var/www/vhosts/example.com/subdir/robots.txt
rm -rf /var/www/vhosts/example.com/subdir/web.config

rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0/LICENSE.txt
rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0/README.txt

cd drupal-8.8.0

mv "core" ../
;mv "modules" ../
;mv "profiles" ../
;mv "sites" ../
;mv "themes" ../
mv "vendor" ../

mv "autoload.php" ../
;mv "composer.json" ../
mv "composer.lock" ../
mv "index.php" ../
mv "robots.txt" ../
mv "update.php" ../
mv "web.config" ../

cd ..

rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0

chown your_username:psacln -R /var/www/vhosts/example.com/subdir/core
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/modules
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/profiles
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/themes
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/sites
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/vendor

chown your_username:psacln -R /var/www/vhosts/example.com/subdir/autoload.php
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/composer.lock
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/composer.json
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/index.php
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/robots.txt
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/update.php
chown your_username:psacln -R /var/www/vhosts/example.com/subdir/web.config

composer update

 

As a general rule, we comment out the paths that we don't want altered.  This is so we have a complete overview of the directory and the elements that we do and don't want updated.

Related articles

Andrew Fletcher30 Apr 2024
Best Practices for Configuring Twig Debug Settings in Drupal 10
When developing with Drupal 10, it's crucial to maintain an environment that is both secure and efficient. One of the important aspects of this setup involves the management of Twig template debugging. Proper configuration of these settings helps prevent unnecessary performance degradation and...