-
-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
135 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,5 @@ debian/aptly.substvars | |
debian/aptly/ | ||
debian/debhelper-build-stamp | ||
debian/files | ||
|
||
.go/ | ||
obj-x86_64-linux-gnu/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"rootDir": "~/.aptly", | ||
"downloadConcurrency": 4, | ||
"downloadSpeedLimit": 0, | ||
"downloadRetries": 0, | ||
"downloader": "default", | ||
"databaseOpenAttempts": -1, | ||
"architectures": [], | ||
"dependencyFollowSuggests": false, | ||
"dependencyFollowRecommends": false, | ||
"dependencyFollowAllVariants": false, | ||
"dependencyFollowSource": false, | ||
"dependencyVerboseResolve": false, | ||
"gpgDisableSign": false, | ||
"gpgDisableVerify": false, | ||
"gpgProvider": "gpg", | ||
"downloadSourcePackages": false, | ||
"skipLegacyPool": true, | ||
"ppaDistributorID": "ubuntu", | ||
"ppaCodename": "", | ||
"skipContentsPublishing": false, | ||
"skipBz2Publishing": false, | ||
"FileSystemPublishEndpoints": {}, | ||
"S3PublishEndpoints": {}, | ||
"SwiftPublishEndpoints": {}, | ||
"AzurePublishEndpoints": {}, | ||
"AsyncAPI": false, | ||
"enableMetricsEndpoint": false, | ||
"logLevel": "info", | ||
"logFormat": "default", | ||
"serveInAPIMode": false, | ||
"enableSwaggerEndpoint": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Default settings for aptly-api | ||
LISTEN_ADDRESS='localhost:8080' | ||
LISTEN_ADDRESS='localhost:3142' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
# | ||
# see: dh_installdeb(1) | ||
|
||
set -e | ||
|
||
# summary of how this script can be called: | ||
# * <new-preinst> `install' | ||
# * <new-preinst> `install' <old-version> | ||
# * <new-preinst> `upgrade' <old-version> | ||
# * <old-preinst> `abort-upgrade' <new-version> | ||
# for details, see http://www.debian.org/doc/debian-policy/ or | ||
# the debian-policy package | ||
|
||
|
||
case "$1" in | ||
install|upgrade) | ||
if [ -f /etc/aptly-api.conf ]; then | ||
cp /etc/aptly-api.conf /etc/aptly.conf | ||
mv /etc/aptly-api.conf /etc/aptly-api.conf.old | ||
sed -i 's_/var/lib/aptly-api_~/.aptly_' /etc/aptly.conf | ||
fi | ||
;; | ||
|
||
abort-upgrade) | ||
;; | ||
|
||
*) | ||
echo "preinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
# dh_installdeb will replace this with shell code automatically | ||
# generated by other debhelper scripts. | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[Unit] | ||
Description=Aptly REST API service | ||
Description=Aptly REST API | ||
After=network.target | ||
Documentation=man:aptly(1) | ||
|
||
[Service] | ||
Environment=TERM=dumb | ||
User=aptly | ||
WorkingDirectory=/var/lib/aptly | ||
ExecStart=/usr/bin/aptly api serve -listen localhost:3142 | ||
Group=aptly | ||
Environment=TERM=dumb | ||
WorkingDirectory=~ | ||
EnvironmentFile=/etc/default/aptly | ||
ExecStart=/usr/bin/aptly api serve -config=/etc/aptly.conf -listen=${LISTEN_ADDRESS} | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters