2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-24 18:14:57 +02:00

Merge pull request #209 from nupplaphil/bug/VERSION

Fix missing /usr/src/friendica/VERSION error
This commit is contained in:
Hypolite Petovan 2022-06-22 15:08:58 -04:00 committed by GitHub
commit 2eee6e748d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 60 additions and 10 deletions

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then

View file

@ -74,7 +74,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="$(cat /var/www/html/VERSION)"
fi
image_version="$(cat /usr/src/friendica/VERSION)"
image_version="0.0.0.0"
if [ -f /usr/src/friendica/VERSION ]; then
image_version="$(cat /usr/src/friendica/VERSION)"
else
echo "No new Friendica sources found (enable FRIENDICA_UPGRADE for new sources)"
fi
# no downgrading possible
if version_greater "$installed_version" "$image_version"; then