Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cerca.ubuntu-it.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
cerca.ubuntu-it.org
Commits
5e794711
Commit
5e794711
authored
Aug 26, 2017
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused cronjob
parent
22421606
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
cronjob
cronjob
+0
-32
No files found.
cronjob
deleted
100755 → 0
View file @
22421606
#!/bin/bash
DIR_BASE
=
"/srv/cerca.ubuntu-it.org/"
DIR_WWW
=
"
${
DIR_BASE
}
/www/"
DIR_BZR_BASE
=
"
${
DIR_BASE
}
/bzr/"
DIR_BZR_WWW
=
"
${
DIR_BZR_BASE
}
/www/"
function
update_files
()
{
cp
-Rpx
${
DIR_BZR_WWW
}
/
*
${
DIR_WWW
}
}
############################################
## Test if repo has been updated ##
############################################
TMP_FILE
=
/tmp/cercarepo_version
## Temp file where version bzr repo has been saved
## Create temp file if it doesn't exist
if
!
test
-f
$TMP_FILE
;
then
cat
/dev/null
>
$TMP_FILE
fi
cd
$DIR_BZR_BASE
VERSION
=
`
cat
$TMP_FILE
`
VERSION_TEST
=
`
bzr up 2>&1 |
tail
-n1
`
if
[
!
"
$VERSION_TEST
"
=
"
$VERSION
"
]
;
then
echo
"
$VERSION_TEST
"
>
$TMP_FILE
update_files
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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