split init

This commit is contained in:
Tykayn 2023-08-17 09:34:05 +02:00 committed by tykayn
parent 69348d5f60
commit 497c5fa2bc
5 changed files with 134 additions and 124 deletions

View file

@ -0,0 +1,26 @@
#!/bin/bash
echo " ------ install java and josm ------"
############## java pour josm
if ! hash java ; then
sudo apt install java -y
fi
if ! hash javaws; then
cd tmp
wget https://github.com/karakun/OpenWebStart/releases/download/v1.7.0/OpenWebStart_linux_1_7_0.deb
sudo dpkg -i OpenWebStart_linux_1_7_0.deb
rm -rf OpenWebStart_linux_1_7_0.deb
fi
if ! hash josm ; then
mkdir -p ~/areas/www/misc/josm
cd ~/areas/www/misc/josm
wget https://josm.openstreetmap.de/download/josm.jnlp
sudo apt install josm -y
fi