mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-12-26 06:59:06 +01:00
Remove sudo from reinitialisation. Make db non persistent.
This commit is contained in:
parent
086d363b7b
commit
540c23ce87
@ -2,12 +2,12 @@
|
||||
|
||||
if [ -d symfony ]; then
|
||||
echo "Data already initialized!"
|
||||
echo -n "Perform a fresh initialisation? Answer yes to proceed and no to exit. "
|
||||
echo -n "Perform a fresh initialisation? [yes to proceed / no to exit] "
|
||||
read -r answer
|
||||
if [ "$answer" == "yes" ]; then
|
||||
echo "Cleaning directories ..."
|
||||
rm -rf symfony
|
||||
sudo rm -rf job-archive
|
||||
rm -rf job-archive
|
||||
rm -rf influxdb/data/*
|
||||
rm -rf sqldata/*
|
||||
echo "done."
|
||||
|
@ -10,7 +10,7 @@ services:
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
||||
- ${DATADIR}/sqldata:/var/lib/mysql
|
||||
# - ${DATADIR}/sqldata:/var/lib/mysql
|
||||
cap_add:
|
||||
- SYS_NICE
|
||||
|
||||
@ -105,4 +105,3 @@ services:
|
||||
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
ports:
|
||||
- "127.0.0.1:${PHPMYADMIN_PORT}:80"
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user