Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thies
uffd2
Commits
da04c1d3
Verified
Commit
da04c1d3
authored
Jul 31, 2021
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
add uffd-admin command, cleanup cronjob and needed /run folder
parent
7704f23c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
debian/contrib/uffd-admin
+17
-0
17 additions, 0 deletions
debian/contrib/uffd-admin
debian/cron.d
+3
-0
3 additions, 0 deletions
debian/cron.d
debian/install
+4
-3
4 additions, 3 deletions
debian/install
debian/tmpfile
+2
-0
2 additions, 0 deletions
debian/tmpfile
with
27 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
0
View file @
da04c1d3
...
@@ -124,6 +124,7 @@ test:package:apt:
...
@@ -124,6 +124,7 @@ test:package:apt:
-
echo "server { listen 127.0.0.1:5000 default_server; include /etc/uffd/nginx.include.conf; }" > /etc/nginx/sites-enabled/uffd.ini
-
echo "server { listen 127.0.0.1:5000 default_server; include /etc/uffd/nginx.include.conf; }" > /etc/nginx/sites-enabled/uffd.ini
-
service nginx start || ( service nginx status; nginx -t; exit 1; )
-
service nginx start || ( service nginx status; nginx -t; exit 1; )
-
sleep
5
-
sleep
5
-
uffd-admin routes
-
curl -Lv 127.0.0.1:5000
-
curl -Lv 127.0.0.1:5000
dependencies
:
dependencies
:
-
build:apt
-
build:apt
...
...
...
...
This diff is collapsed.
Click to expand it.
debian/contrib/uffd-admin
0 → 100755
+
17
−
0
View file @
da04c1d3
#!/bin/bash -x
set
-e
export
FLASK_APP
=
/usr/share/uffd/uffd
export
CONFIG_FILENAME
=
/etc/uffd/uffd.cfg
if
[
"
$(
whoami
)
"
=
"uffd"
]
;
then
flask
$@
elif
command
-v
sudo
&> /dev/null
;
then
exec sudo
--preserve-env
=
FLASK_APP,CONFIG_FILENAME
-u
uffd flask
$@
elif
command
-v
su &> /dev/null
;
then
exec
su
-s
/bin/sh
--preserve-environment
uffd
-c
flask
$@
else
echo
"Could not not become 'uffd' user, exiting"
exit
255
fi
This diff is collapsed.
Click to expand it.
debian/cron.d
0 → 100644
+
3
−
0
View file @
da04c1d3
#
Cronjobs
for
uffd
@daily
uffd
[
-
f
/
usr
/
bin
/
uffd
-
admin
]
&&
flock
-
n
/
var
/
run
/
uffd
/
cron
.
roles
-
update
-
all
.
lock
/
usr
/
bin
/
uffd
-
admin
roles
-
update
-
all
--
check
-
only
2
>
/
dev
/
null
This diff is collapsed.
Click to expand it.
debian/install
+
4
−
3
View file @
da04c1d3
uwsgi.ini /etc/uffd/
uwsgi.ini /etc/uffd/
nginx.include.conf /etc/uffd/
nginx.include.conf /etc/uffd/
debian/uffd.cfg /etc/uffd/
debian/uffd.cfg /etc/uffd/
debian/contrib/uffd-admin /usr/bin/
This diff is collapsed.
Click to expand it.
debian/tmpfile
0 → 100644
+
2
−
0
View file @
da04c1d3
#Type Path Mode UID GID Age Argument
d /run/uffd 0755 uffd uffd - -
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment