Bug fixes

This commit is contained in:
Juan 2018-08-29 15:09:21 +02:00
parent 2e720dbf77
commit 4e554cbce7
7 changed files with 15 additions and 16 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-repo (2.0.34) stable; urgency=low vn-repo (2.0.37) stable; urgency=low
* Initial Release. * Initial Release.

4
debian/control vendored
View File

@ -1,10 +1,10 @@
Source: vn-repo Source: vn-repo
Priority: optional Priority: optional
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es> Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
Build-Depends: build-essential, debhelper Build-Depends: devscripts
Standards-Version: 3.9.3 Standards-Version: 3.9.3
Section: misc Section: misc
Homepage: https://www.verdnatura.es Homepage: https://verdnatura.es
Vcs-Git: https://git.verdnatura.es/vn-repo Vcs-Git: https://git.verdnatura.es/vn-repo
Package: vn-repo Package: vn-repo

2
debian/postinst vendored
View File

@ -3,7 +3,7 @@ set -e
# Adds the repository user # Adds the repository user
useradd --shell /bin/bash --home-dir /var/cache/reprepro --create-home vn-repo || echo "User already exists." useradd --shell /bin/bash --home-dir /var/lib/vn-repo --uid 899 --create-home vn-repo || echo "User already exists."
# Enables Apache configuration # Enables Apache configuration

View File

@ -8,7 +8,7 @@ fi
projectName=$1 projectName=$1
repoDir="/var/lib/git/$projectName" repoDir="/var/lib/git/$projectName"
srcDir="/tmp/vn-repo/$projectName/src" srcDir="/tmp/vn-repo/$projectName/src"
logDir="$HOME/logs" logDir="/usr/share/vn-repo/web/logs"
logFile="$logDir/$projectName.out" logFile="$logDir/$projectName.out"
mkdir -p "$logDir" mkdir -p "$logDir"

View File

@ -7,7 +7,6 @@ else
srcDir="$1" srcDir="$1"
fi fi
buildDir="$srcDir/.." buildDir="$srcDir/.."
repreproDir="/var/cache/reprepro" repreproDir="/var/cache/reprepro"
codename="stable" codename="stable"
@ -15,7 +14,7 @@ codename="stable"
owner=`stat -c '%G' "$repreproDir/pool"` owner=`stat -c '%G' "$repreproDir/pool"`
if [ "$owner" != "$USER" ]; then if [ "$owner" != "$USER" ]; then
echo "You must start this script with '$owner' user" (>&2 echo "You must start this script with '$owner' user")
exit 1 exit 1
fi fi

View File

@ -1,4 +1,4 @@
Alias /apt /var/cache/reprepro/ #Alias /apt /var/cache/reprepro/
#Alias /vn-repo /usr/share/vn-repo/web/ #Alias /vn-repo /usr/share/vn-repo/web/
<Directory /var/cache/reprepro/> <Directory /var/cache/reprepro/>
@ -6,6 +6,13 @@ Alias /apt /var/cache/reprepro/
Options +FollowSymLinks Options +FollowSymLinks
AllowOverride None AllowOverride None
Require all granted Require all granted
</Directory>
<Directory /usr/share/vn-repo/web/>
Options Indexes
Options +FollowSymLinks
AllowOverride None
Require all granted
<Files "*.out"> <Files "*.out">
<IfModule mod_headers.c> <IfModule mod_headers.c>
@ -14,10 +21,3 @@ Alias /apt /var/cache/reprepro/
</IfModule> </IfModule>
</Files> </Files>
</Directory> </Directory>
<Directory /usr/share/vn-repo/web/>
Options Indexes
Options +FollowSymLinks
AllowOverride None
Require all granted
</Directory>

View File

@ -1,4 +1,4 @@
let logsPath = '/apt/logs'; let logsPath = 'logs';
window.onload = () => { window.onload = () => {
let select = $('select'); let select = $('select');