diff --git a/CloudronManifest.json b/CloudronManifest.json index 0a9c651..8c4005b 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -1,6 +1,7 @@ { "version": "0.0.1", "id": "com.github.drone", + "icon": "file://logo.png", "healthCheckPath": "/", "httpPort": 8000, "addons": { diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..dd95d7f Binary files /dev/null and b/logo.png differ diff --git a/start.sh b/start.sh index 8c24397..df8c3a7 100755 --- a/start.sh +++ b/start.sh @@ -16,6 +16,7 @@ DRONE_RPC_SECRET=$(random_string) DRONE_DATABASE_SECRET=$(random_string) DRONE_SERVER_HOST=$CLOUDRON_APP_DOMAIN DRONE_DATABASE_DATASOURCE=postgres://$CLOUDRON_POSTGRESQL_USERNAME:$CLOUDRON_POSTGRESQL_PASSWORD@$CLOUDRON_POSTGRESQL_HOST:$CLOUDRON_POSTGRESQL_PORT/$CLOUDRON_POSTGRESQL_DATABASE?sslmode=disable +#DRONE_USER_CREATE=username:felix,admin:true EOF fi @@ -24,6 +25,16 @@ set -a . /app/data/.env set +x +if [ ! -e /app/data/README.md ]; then + cat <<-'EOF' > "/app/data/README.md" +# Hey there! + +Configuration for drone is stored in the file called `.env`. After you have made changes to it you can restart just drone-server by running `supervisorctl restart drone-server`. + +To work with drone you need to configure a provider in your `.env` file. See https://docs.drone.io/server/overview/ for instructions. +EOF +fi + echo "=> Ensure permissions" chown -R cloudron:cloudron /run /app/data