Skip to content

Commit fc810d3

Browse files
committed
make it more clear
1 parent 3918903 commit fc810d3

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

10.0/apache/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

10.0/fpm/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

11.0/apache/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

11.0/fpm/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

9.0/apache/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

9.0/fpm/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if version_greater "$installed_version" "$image_version"; then
1818
fi
1919

2020
if version_greater "$image_version" "$installed_version"; then
21-
if version_greater "$installed_version" "0.0.0"; then
21+
if [ "$installed_version" != "0.0.0" ]; then
2222
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
2323
fi
2424

@@ -32,7 +32,7 @@ if version_greater "$image_version" "$installed_version"; then
3232

3333
chown -R www-data /var/www/html
3434

35-
if version_greater "$installed_version" "0.0.0"; then
35+
if [ "$installed_version" != "0.0.0" ]; then
3636
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
3737

3838
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_after

0 commit comments

Comments
 (0)