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
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
04e6e66a
Commit
04e6e66a
authored
Jun 10, 2016
by
Laurent Peuch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[enh] try to install static files
parent
4eef2f76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
conf/nginx.conf
conf/nginx.conf
+9
-0
scripts/install
scripts/install
+21
-1
No files found.
conf/nginx.conf
0 → 100644
View file @
04e6e66a
location
PATHTOCHANGE/
{
alias
ALIASTOCHANGE
;
if
(
$scheme
=
http)
{
rewrite
^
https://
$server_name$request_uri
?
permanent
;
}
index
index.html
;
}
scripts/install
View file @
04e6e66a
set -e
source ./commons
# Retrieve arguments
domain=$1
path=$2
...
...
@@ -10,7 +12,23 @@ if [[ ! $? -eq 0 ]]; then
exit 1
fi
source ./commons
install_static_file() {
final_path=/var/www/neutrinet
sudo mkdir -p $final_path
sudo cp -a ../sources/ $final_path
sudo chown -R www-data: $final_path
if [[ "$path" == "" ]]; then
sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf
else
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
fi
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/neutrinet.conf
}
install_renew_cert() {
set -e
...
...
@@ -53,6 +71,8 @@ sudo yunohost app setting neutrinet version -v "0.1.1"
sudo yunohost app fetchlist -n neutrinet -u https://neutrinet.be/apps.json
sudo yunohost app fetchlist -n labriqueinternet -u https://labriqueinter.net/apps/labriqueinternet.json
install_static_file
install_renew_cert
# vpn is not running, let's assume for now that this mean that the vpn is broken
...
...
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