mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
remove logic to delete dangling volumes: node
This commit is contained in:
@@ -342,15 +342,6 @@ if [[ -n $POSTGRES_FOLDER ]] ; then
|
|||||||
sed -i "/^\s*pgdata:/d" docker-compose.yml
|
sed -i "/^\s*pgdata:/d" docker-compose.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove trailing blank lines from end of file
|
|
||||||
sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' docker-compose.yml
|
|
||||||
# if last line in file contains "volumes:", remove that line since no more named volumes are left
|
|
||||||
l1=$(grep -n '^volumes:' docker-compose.yml | cut -d : -f 1) # get line number containing volume: at begin of line
|
|
||||||
l2=$(wc -l < docker-compose.yml) # get total number of lines
|
|
||||||
if [ "$l1" -eq "$l2" ] ; then
|
|
||||||
sed -i "/^volumes:/d" docker-compose.yml
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user