now nextcloud install successfully

This commit is contained in:
Snogard 2023-07-25 18:10:15 +02:00
parent 0dd2ddba4c
commit a1839068d9

View File

@ -1,6 +1,6 @@
#!/bin/bash
# docs https://github.com/nextcloud/docker
source /opt/kaido/src/libs/bash/lib.sh
# docs https://github.com/nextcloud/docker
echo "This is still experimental"
exit 1
@ -9,7 +9,7 @@ exit 1
podName=nextcloud
containerName_nextcloud=${podName}_web
containerName_db=${podName}_mariadb
containerName_db=${podName}_db
containerName_redis=${podName}_redis
containerName_smtp=${podName}_smtp
@ -31,7 +31,6 @@ dstDBDataPath=$dstBasePath/db/data
# pre install
create_folder "$dstNextcloudPath"
create_folder "$dstAppsPath"
create_folder "$dstConfigPath"
@ -39,15 +38,14 @@ create_folder "$dstDataPath"
create_folder "$dstThemePath"
create_folder "$dstDBDataPath"
create_folder "$dstDBConfigPath"
stop_and_remove_pod $podName
#install
# install
echo "Creating new $podName pod"
podman pod create \
--name $podName \
-p 10117:8080/tcp
-p 10117:80/tcp
echo "Creating new $containerName_db container"
podman create \
@ -55,6 +53,7 @@ podman create \
--name $containerName_db \
-v $dstDBConfigPath:/etc/mysql/conf.d \
-v $dstDBDataPath:/var/lib/mysql \
-e MARIADB_DATABASE=nextcloud \
-e MARIADB_USER=nextcloud \
-e MARIADB_PASSWORD=mariadb_password \
-e MARIADB_ROOT_PASSWORD=mariadb_root_password \
@ -74,21 +73,19 @@ podman create \
-e MYSQL_USER=nextcloud \
-e MYSQL_PASSWORD=mariadb_password \
-e MYSQL_HOST=$containerName_db \
$imageName_youtubedl
$imageName_nextcloud
# --requires $containerName_redis \
# --requires $containerName_smtp \
# --requires $containerName_redis \
# -e SMTP_SECURE=ssl \
# -e SMTP_HOST=$containerName_smtp \
# -e SMTP_NAME=nexcloud \
# -e SMTP_PASSWORDS=smtp_password \
# -e MAIL_DOMAIN=example.com \
# -e REDIS_HOST=$containerName_redis \
# -e REDIS_PASSWORD=redis_password \
# -e SMTP_HOST=$containerName_smtp \
# -e SMTP_SECURE=ssl \
# -e SMTP_NAME=nexcloud \
# -e SMTP_PASSWORS=smtp_password \
# -e MAIL_DOMAIN=example.com
# systemd
create_systemd_services $podName
systemctl --user enable --now $podName
systemctl --user enable --now $podName