mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #5175 from nextcloud/enh/4890/add-snap-warning
mastercontainer: add warning if snap install was found
This commit is contained in:
commit
5d6fc71a61
1 changed files with 10 additions and 3 deletions
|
|
@ -91,14 +91,21 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check Storage drivers
|
# Check Storage drivers
|
||||||
STORAGE_DRIVER="$(docker info | grep "Storage Driver")"
|
STORAGE_DRIVER="$(sudo -u www-data docker info | grep "Storage Driver")"
|
||||||
# Check if vfs is used: https://github.com/nextcloud/all-in-one/discussions/1467
|
# Check if vfs is used: https://github.com/nextcloud/all-in-one/discussions/1467
|
||||||
if echo "$STORAGE_DRIVER" | grep -q vfs; then
|
if echo "$STORAGE_DRIVER" | grep -q vfs; then
|
||||||
echo "$STORAGE_DRIVER"
|
echo "$STORAGE_DRIVER"
|
||||||
echo "Warning: It seems like the storage driver vfs is used. This will lead to problems with disk space and performance and is disrecommended!"
|
print_red "Warning: It seems like the storage driver vfs is used. This will lead to problems with disk space and performance and is disrecommended!"
|
||||||
elif echo "$STORAGE_DRIVER" | grep -q fuse-overlayfs; then
|
elif echo "$STORAGE_DRIVER" | grep -q fuse-overlayfs; then
|
||||||
echo "$STORAGE_DRIVER"
|
echo "$STORAGE_DRIVER"
|
||||||
echo "Warning: It seems like the storage driver fuse-overlayfs is used. Please check if you can switch to overlay2 instead."
|
print_red "Warning: It seems like the storage driver fuse-overlayfs is used. Please check if you can switch to overlay2 instead."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if snap install
|
||||||
|
if sudo -u www-data docker info | grep "Docker Root Dir" | grep "/var/snap/docker/"; then
|
||||||
|
print_red "Warning: It looks like your installation uses docker installed via snap."
|
||||||
|
print_red "This comes with some limitations and is disrecommended by the docker maintainers."
|
||||||
|
print_red "See for example https://github.com/nextcloud/all-in-one/discussions/4890#discussioncomment-10386752"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if startup command was executed correctly
|
# Check if startup command was executed correctly
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue