Commit e6b1f124 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

init

parents
{
"name": "Neutrinet",
"id": "neutrinet",
"description": {
"en": "Specific configs for Neutrinet",
"fr": "Configuration spécific pour Neutrinet"
},
"license": "GPL-3+",
"maintainer": {
"name": "bram",
"email": "cortex@worlddomination.be",
"url": "http://worlddomination.be"
},
"multi_instance": "false",
"arguments": {}
}
set -e
install_renew_cert() {
set -e
sudo apt-get install -y python-virtualenv
sudo git clone https://github.com/neutrinet/renew_cert /opt
git checkout a6d09c2d77ce9bd4161d56e93fc5ce03187ad51c || echo ""
install_dir=$(pwd)
cd /opt/renew_cert
# I need system site packages otherwise moulinette is broken
sudo virtualenv ve --system-site-packages
sudo ve/bin/pip install -r requirements.txt
cd $install_dir
}
renew_cert() {
cd /opt/renew_cert
sudo ve/bin/python renew_from_cube.py
}
path=${path%/}
sudo yunohost app setting neutrinet version -v "0.1"
install_renew_cert
# vpn is not running, let's assume for now that this mean that the vpn is broken
if [ ! "$((ip -4 addr show tun0 | grep 'inet 80.67.181.') || echo '')" ]; then
renew_cert
fi
sudo rm -rf /opt/renew_cert
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment