mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-19 18:36:09 +02:00
output Initializing new instance
This commit is contained in:
parent
6aab33620c
commit
658929b23f
10 changed files with 30 additions and 20 deletions
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
|
@ -34,10 +34,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version"; then
|
||||||
echo -n "Initializing version $image_version ... "
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
echo -ne "\nRunning upgrade from $installed_version ... "
|
echo -n "Running upgrade from $installed_version to $image_version ... "
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
|
||||||
|
else
|
||||||
|
echo "Initializing new instance with version $image_version ... "
|
||||||
fi
|
fi
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
rsync_options="-rlDog --chown www-data:root"
|
rsync_options="-rlDog --chown www-data:root"
|
||||||
|
|
Loading…
Add table
Reference in a new issue