mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
added system tasks
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# fail immediately if error
|
||||
set -e
|
||||
|
||||
# lock global
|
||||
touch /tmp/install.lock
|
||||
|
||||
@@ -7,9 +10,9 @@ touch /tmp/install.lock
|
||||
touch /tmp/install-java.lock
|
||||
|
||||
# install java
|
||||
apt-get clean && \
|
||||
apt-get update --fix-missing && \
|
||||
apt-get install -y --fix-missing default-jdk
|
||||
apt-get clean
|
||||
apt-get update --fix-missing
|
||||
apt-get install -y --fix-missing default-jdk
|
||||
ln -s /usr/bin/java /usr/local/bin/java
|
||||
|
||||
# unlock
|
||||
|
||||
Reference in New Issue
Block a user