Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
86371327
Commit
86371327
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
gnusocial queuedaemons use www-data
parent
ce5d65d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-app-gnusocial
+5
-5
5 additions, 5 deletions
src/freedombone-app-gnusocial
src/freedombone-app-postactiv
+5
-5
5 additions, 5 deletions
src/freedombone-app-postactiv
src/freedombone-utils-gnusocialtools
+1
-1
1 addition, 1 deletion
src/freedombone-utils-gnusocialtools
with
11 additions
and
11 deletions
src/freedombone-app-gnusocial
+
5
−
5
View file @
86371327
...
...
@@ -404,7 +404,7 @@ function restore_local_gnusocial {
gnusocial_dir
=
/var/www/
${
GNUSOCIAL_DOMAIN_NAME
}
/htdocs
# stop the daemons
cd
$gnusocial_dir
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
function_check gnusocial_create_database
gnusocial_create_database
...
...
@@ -416,7 +416,7 @@ function restore_local_gnusocial {
# start the daemons
cd
$gnusocial_dir
scripts/startdaemons.sh
su
-c
"sh
scripts/startdaemons.sh
"
-s
/bin/sh www-data
echo
$"Restore of gnusocial complete"
fi
}
...
...
@@ -452,7 +452,7 @@ function restore_remote_gnusocial {
# stop the daemons
cd
/var/www/
${
GNUSOCIAL_DOMAIN_NAME
}
/htdocs
./
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
function_check gnusocial_create_database
gnusocial_create_database
...
...
@@ -465,7 +465,7 @@ function restore_remote_gnusocial {
# start the daemons
cd
/var/www/
${
GNUSOCIAL_DOMAIN_NAME
}
/htdocs
./
scripts/startdaemons.sh
su
-c
"sh
scripts/startdaemons.sh
"
-s
/bin/sh www-data
echo
$"Restore of gnusocial complete"
fi
}
...
...
@@ -487,7 +487,7 @@ function remove_gnusocial {
fi
if
[
-f
/var/www/
$GNUSOCIAL_DOMAIN_NAME
/htdocs/scripts/stopdaemons.sh
]
;
then
cd
/var/www/
$GNUSOCIAL_DOMAIN_NAME
/htdocs/scripts
./
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
fi
kill_pid
=
$(
ps aux |
grep
/var/www/
$GNUSOCIAL_DOMAIN_NAME
/htdocs/scripts/queuedaemon.php |
awk
-F
' '
'{print $2}'
|
head
-n
1
)
kill
-9
$kill_pid
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-app-postactiv
+
5
−
5
View file @
86371327
...
...
@@ -411,7 +411,7 @@ function restore_local_postactiv {
postactiv_dir
=
/var/www/
${
POSTACTIV_DOMAIN_NAME
}
/htdocs
# stop the daemons
cd
$postactiv_dir
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
function_check postactiv_create_database
postactiv_create_database
...
...
@@ -423,7 +423,7 @@ function restore_local_postactiv {
# start the daemons
cd
$postactiv_dir
scripts/startdaemons.sh
su
-c
"sh
scripts/startdaemons.sh
"
-s
/bin/sh www-data
fi
}
...
...
@@ -455,7 +455,7 @@ function restore_remote_postactiv {
# stop the daemons
cd
/var/www/
${
POSTACTIV_DOMAIN_NAME
}
/htdocs
./
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
function_check postactiv_create_database
postactiv_create_database
...
...
@@ -468,7 +468,7 @@ function restore_remote_postactiv {
# start the daemons
cd
/var/www/
${
POSTACTIV_DOMAIN_NAME
}
/htdocs
./
scripts/startdaemons.sh
su
-c
"sh
scripts/startdaemons.sh
"
-s
/bin/sh www-data
fi
}
...
...
@@ -489,7 +489,7 @@ function remove_postactiv {
fi
if
[
-f
/var/www/
$POSTACTIV_DOMAIN_NAME
/htdocs/scripts/stopdaemons.sh
]
;
then
cd
/var/www/
$POSTACTIV_DOMAIN_NAME
/htdocs/scripts
./
scripts/stopdaemons.sh
su
-c
"sh
scripts/stopdaemons.sh
"
-s
/bin/sh www-data
fi
kill_pid
=
$(
ps aux |
grep
/var/www/
$POSTACTIV_DOMAIN_NAME
/htdocs/scripts/queuedaemon.php |
awk
-F
' '
'{print $2}'
|
head
-n
1
)
kill
-9
$kill_pid
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-gnusocialtools
+
1
−
1
View file @
86371327
...
...
@@ -468,7 +468,7 @@ function gnusocial_hourly_script {
echo
' MY_EMAIL_ADDRESS=$ADMIN_USER@$HOSTNAME'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
-n
" echo
\"
Restarting
${
gnusocial_type
}
daemons
\"
| mail -s
\"
${
gnusocial_type
}
"
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
'daemons not found" $MY_EMAIL_ADDRESS'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
' scripts/startdaemons.sh'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
'
su -c "sh
scripts/startdaemons.sh
" -s /bin/sh www-data
'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
'fi'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
echo
'php scripts/delete_orphan_files.php > /dev/null'
>>
/etc/cron.hourly/
${
gnusocial_type
}
-daemons
...
...
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