Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ilja
neutrinet_ynh
Commits
04e6e66a
Commit
04e6e66a
authored
Jun 10, 2016
by
Laurent Peuch
Browse files
[enh] try to install static files
parent
4eef2f76
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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