import directus db 5

This commit is contained in:
Valentin 2024-04-17 17:44:10 +02:00
parent 7b664fe444
commit 89c834703a
1 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,9 @@ if [[ "$answer" == "y" ]]; then
echo -e "${PURPLE}${BOLD}Press any key when done${RESET}"
read
tar -xzf "/home/${username}/*.tar.gz" -C "${cms_directory}"
directus_archive=$(ls /home/${username}/*.tar.gz);
tar -xzf "/home/${username}/${directus_archive}" -C "${cms_directory}"
rm "/home/${username}/*.tar.gz"
sed -i "s/^\(DB_PASSWORD=\)'.*'$/\1'$db_directus_password'/" "${cms_directory}/.env"