did some upgrades while launching a site
This commit is contained in:
14
bin/db-dump.bash
Normal file
14
bin/db-dump.bash
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
#check if root
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit;
|
||||
fi
|
||||
|
||||
#Grab dotenv
|
||||
export $(grep -v '^#' .env | xargs)
|
||||
|
||||
tstamp=`date +%Y%m%d`
|
||||
|
||||
docker-compose exec mariadb-joomla /usr/bin/mysqldump -u ${MYSQL_USER} --password=${MYSQL_PASSWORD} ${MYSQL_DATABASE} > sql/${JOOMLA_USER}-${MYSQL_DATABASE}-${tstamp}.sql
|
||||
15
bin/file-sync.sh
Normal file
15
bin/file-sync.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#check if root
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit;
|
||||
fi
|
||||
|
||||
#Grab dotenv
|
||||
rsync -azhvc --del /var/lib/docker/volumes/harvst-ca_joomla/_data/ html/
|
||||
|
||||
# You probably should do something more like this:
|
||||
# docker create --name temp-container -v <source_volume>:/source_data busybox
|
||||
# docker cp temp-container:/source_data /path/to/destination_directory
|
||||
# docker rm temp-container
|
||||
@@ -11,7 +11,7 @@ fi
|
||||
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/templaza/astroid-framework/releases/download/v2.6.5/astroid-package-v2.6.5.Framework-Template.zip
|
||||
|
||||
# Sitemap
|
||||
[GitHub](https://github.com/joomlashack/OSMap)
|
||||
# [GitHub](https://github.com/joomlashack/OSMap)
|
||||
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://deploy.ostraining.com/client/download/free/latest-stable/com_osmap
|
||||
|
||||
# Comments
|
||||
|
||||
Reference in New Issue
Block a user