Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
81fa0633
Commit
81fa0633
authored
9 years ago
by
Ross McDonald
Browse files
Options
Downloads
Patches
Plain Diff
Removed data directory entries, since Telegraf doesn't need them.
parent
07b4a4db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.py
+1
-2
1 addition, 2 deletions
build.py
with
1 addition
and
2 deletions
build.py
+
1
−
2
View file @
81fa0633
...
@@ -26,7 +26,6 @@ except ImportError:
...
@@ -26,7 +26,6 @@ except ImportError:
# PACKAGING VARIABLES
# PACKAGING VARIABLES
INSTALL_ROOT_DIR
=
"
/usr/bin
"
INSTALL_ROOT_DIR
=
"
/usr/bin
"
LOG_DIR
=
"
/var/log/telegraf
"
LOG_DIR
=
"
/var/log/telegraf
"
DATA_DIR
=
"
/var/lib/telegraf
"
SCRIPT_DIR
=
"
/usr/lib/telegraf/scripts
"
SCRIPT_DIR
=
"
/usr/lib/telegraf/scripts
"
CONFIG_DIR
=
"
/etc/telegraf
"
CONFIG_DIR
=
"
/etc/telegraf
"
LOGROTATE_DIR
=
"
/etc/logrotate.d
"
LOGROTATE_DIR
=
"
/etc/logrotate.d
"
...
@@ -362,7 +361,7 @@ def create_package_fs(build_root):
...
@@ -362,7 +361,7 @@ def create_package_fs(build_root):
print
"
\t
- Creating a filesystem hierarchy from directory: {}
"
.
format
(
build_root
)
print
"
\t
- Creating a filesystem hierarchy from directory: {}
"
.
format
(
build_root
)
# Using [1:] for the path names due to them being absolute
# Using [1:] for the path names due to them being absolute
# (will overwrite previous paths, per 'os.path.join' documentation)
# (will overwrite previous paths, per 'os.path.join' documentation)
dirs
=
[
INSTALL_ROOT_DIR
[
1
:],
LOG_DIR
[
1
:],
DATA_DIR
[
1
:],
SCRIPT_DIR
[
1
:],
CONFIG_DIR
[
1
:],
LOGROTATE_DIR
[
1
:]
]
dirs
=
[
INSTALL_ROOT_DIR
[
1
:],
LOG_DIR
[
1
:],
SCRIPT_DIR
[
1
:],
CONFIG_DIR
[
1
:],
LOGROTATE_DIR
[
1
:]
]
for
d
in
dirs
:
for
d
in
dirs
:
create_dir
(
os
.
path
.
join
(
build_root
,
d
))
create_dir
(
os
.
path
.
join
(
build_root
,
d
))
os
.
chmod
(
os
.
path
.
join
(
build_root
,
d
),
0755
)
os
.
chmod
(
os
.
path
.
join
(
build_root
,
d
),
0755
)
...
...
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
register
or
sign in
to comment