Commit 94c85deb4e54c14d16aa9bca58521f9023898ba8
Committed by
Rodrigo Siqueira de Melo
1 parent
0247cf56
Exists in
master
and in
79 other branches
No need for postgresql setup
Since this package is only used by spb and there is no colab setup with local postgresql than this code is no longer needed. Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
2 additions
and
22 deletions
Show diff stats
colab/colab.spec
... | ... | @@ -191,28 +191,8 @@ fi |
191 | 191 | |
192 | 192 | mkdir -p /etc/colab/settings.d |
193 | 193 | |
194 | -# only applies if there is a local PostgreSQL server | |
195 | -if [ -x /usr/bin/postgres ]; then | |
196 | - | |
197 | - # start/enable the service | |
198 | - postgresql-setup initdb || true | |
199 | - systemctl start postgresql | |
200 | - systemctl enable postgresql | |
201 | - | |
202 | - if [ "$(sudo -u postgres -i psql --quiet --tuples-only -c "select count(*) from pg_user where usename = 'colab';")" -eq 0 ]; then | |
203 | - # create user | |
204 | - sudo -u postgres -i createuser colab | |
205 | - fi | |
206 | - | |
207 | - if [ "$(sudo -u postgres -i psql --quiet --tuples-only -c "select count(1) from pg_database where datname = 'colab';")" -eq 0 ]; then | |
208 | - # create database | |
209 | - sudo -u postgres -i createdb --owner=colab colab | |
210 | - fi | |
211 | ->>>>>>> Updated colab settings | |
212 | - | |
213 | - chown root:colab /etc/colab/settings.py | |
214 | - chmod 0640 /etc/colab/settings.py | |
215 | -fi | |
194 | +chown root:colab /etc/colab/settings.py | |
195 | +chmod 0640 /etc/colab/settings.py | |
216 | 196 | |
217 | 197 | install -d -m 0755 -o colab -g colab /var/lib/colab-assets |
218 | 198 | ... | ... |