Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2019.12/apache/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2019.12/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion 2019.12/fpm-alpine/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2019.12/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion 2019.12/fpm/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2019.12/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion 2020.03-dev/apache/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2020.03-dev/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion 2020.03-dev/fpm-alpine/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2020.03-dev/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion 2020.03-dev/fpm/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions 2020.03-dev/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down
2 changes: 1 addition & 1 deletion docker-cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ while [ ! -f /var/www/html/bin/daemon.php ]; do
done

echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then
exec php /var/www/html/bin/daemon.php -f start
else
echo "[ERROR] Waited 300 seconds, no response" >&2
Expand Down
11 changes: 6 additions & 5 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ version_greater() {
}

setup_ssmtp() {
if [ -n "${FRIENDICA_SITENAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
echo "Setup SSMTP for '$FRIENDICA_SITENAME' with '$SMTP' ..."
if [ -n "${HOSTNAME+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" ]; then
SITENAME="${FRIENDICA_SITENAME:-Friendica Social Network}"
echo "Setup SSMTP for '$SITENAME' with '$SMTP' ..."

smtp_from=${SMTP_FROM:-no-reply}

# Setup SSMTP
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" www-data

# add possible mail-senders
{
Expand Down Expand Up @@ -117,7 +118,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then

if [ "$install" = true ]; then
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /var/www/html/bin/wait-for-connection "$MYSQL_HOST" "${MYSQL_PORT:-3306}" 300; then
if run_as "php /var/www/html/bin/wait-for-connection $MYSQL_HOST ${MYSQL_PORT:-3306} 300"; then

echo "Starting Friendica installation ..."
run_as "php /var/www/html/bin/console.php autoinstall $install_options"
Expand Down