fix: check database driver

This commit is contained in:
Bo-Yi Wu 2019-06-19 00:53:57 +08:00
parent 6709411471
commit d2385008db

View File

@ -48,8 +48,8 @@
volumes: volumes:
- "{{ drone_sqlite_dir }}:/data" - "{{ drone_sqlite_dir }}:/data"
env_file: /etc/drone/drone-server.env env_file: /etc/drone/drone-server.env
when: (drone_server_config is defined and drone_server_config.changed) or when: ((drone_server_config is defined and drone_server_config.changed) or
(drone_sqlite_folder is defined and drone_sqlite_folder.changed) or (drone_sqlite_folder is defined and drone_sqlite_folder.changed)) and
drone_database_driver == "sqlite" drone_database_driver == "sqlite"
tags: tags:
- drone-server - drone-server
@ -68,8 +68,8 @@
volumes: volumes:
- "{{ drone_sqlite_dir }}:/data" - "{{ drone_sqlite_dir }}:/data"
env_file: /etc/drone/drone-server.env env_file: /etc/drone/drone-server.env
when: (drone_server_config is defined and drone_server_config.changed) or when: ((drone_server_config is defined and drone_server_config.changed) or
(drone_postgres_data_dir is defined and drone_postgres_data_dir.changed) or (drone_postgres_data_dir is defined and drone_postgres_data_dir.changed)) and
drone_database_driver != "sqlite" drone_database_driver != "sqlite"
tags: tags:
- drone-server - drone-server