Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neutrinet_ynh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilja
neutrinet_ynh
Commits
e6b1f124
Commit
e6b1f124
authored
Jun 07, 2016
by
Laurent Peuch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
manifest.json
manifest.json
+16
-0
scripts/install
scripts/install
+37
-0
scripts/remove
scripts/remove
+1
-0
No files found.
manifest.json
0 → 100644
View file @
e6b1f124
{
"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"
:
{}
}
scripts/install
0 → 100644
View file @
e6b1f124
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
scripts/remove
0 → 100644
View file @
e6b1f124
sudo rm -rf /opt/renew_cert
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment