update setup.sh
This commit is contained in:
parent
8f9ab7ba3e
commit
c3bb76e4d0
1 changed files with 15 additions and 0 deletions
15
setup.sh
15
setup.sh
|
@ -65,6 +65,11 @@ fi
|
||||||
sed -i '/default_language/d' $FILE
|
sed -i '/default_language/d' $FILE
|
||||||
echo "default_language=$default_language" >> $FILE
|
echo "default_language=$default_language" >> $FILE
|
||||||
|
|
||||||
|
DOCKER_VOLUME_OWNER=${DOCKER_VOLUME_OWNER:=nobody}
|
||||||
|
read -p "Set owner of Docker Volumes [$DOCKER_VOLUME_OWNER]: " input
|
||||||
|
DOCKER_VOLUME_OWNER=${input:=$DOCKER_VOLUME_OWNER}
|
||||||
|
sed -i '/DOCKER_VOLUME_OWNER/d' $FILE
|
||||||
|
|
||||||
HOST_IP=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -n 1)
|
HOST_IP=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -n 1)
|
||||||
|
|
||||||
echo ------------------------------------------------------------
|
echo ------------------------------------------------------------
|
||||||
|
@ -137,6 +142,16 @@ cp .docker-compose.$HTTP_METHOD.yml docker-compose.yml
|
||||||
sed -i "s|<clientUrl>|$PUBLIC_URL|g" docker-compose.yml
|
sed -i "s|<clientUrl>|$PUBLIC_URL|g" docker-compose.yml
|
||||||
sed -i "s|<hostIp>|$HOST_IP|g" docker-compose.yml
|
sed -i "s|<hostIp>|$HOST_IP|g" docker-compose.yml
|
||||||
|
|
||||||
|
echo ------------------------------------------------------------
|
||||||
|
echo --------- 4. Migrate and Setup Docker Volume User ----------
|
||||||
|
echo ------------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "DOCKER_VOLUME_OWNER=$DOCKER_VOLUME_OWNER" >> $FILE
|
||||||
|
if [ -d /var/lib/docker/volumes/$APP_NAME_theme_data ]; then
|
||||||
|
chown -R $DOCKER_VOLUME_OWNER /var/lib/docker/volumes/jitsi-admin_image_upload
|
||||||
|
chown -R $DOCKER_VOLUME_OWNER /var/lib/docker/volumes/jitsi-admin_theme_data
|
||||||
|
chown -R $DOCKER_VOLUME_OWNER /var/lib/docker/volumes/jitsi-admin_theme_assests_data
|
||||||
|
fi
|
||||||
|
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m' # No Color
|
||||||
|
|
Loading…
Add table
Reference in a new issue