Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
mahara
mahara-scripts
Commits
08977983
Commit
08977983
authored
Jun 03, 2011
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run langpacks scripts as maharabot user
parent
91f6ff9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
debian/custom-site-mahara-langpacks.cron.d
debian/custom-site-mahara-langpacks.cron.d
+2
-2
debian/custom-site-mahara-langpacks.postinst
debian/custom-site-mahara-langpacks.postinst
+23
-0
debian/custom-site-mahara-langpacks.postrm
debian/custom-site-mahara-langpacks.postrm
+1
-0
No files found.
debian/custom-site-mahara-langpacks.cron.d
View file @
08977983
#
#
Regular
cron
jobs
for
the
custom
-
site
-
mahara
-
langpacks
package
#
22
*
*
*
*
root
[
-
x
/
usr
/
lib
/
mahara
-
langpacks
/
langpacks
.
sh
]
&&
/
usr
/
lib
/
mahara
-
langpacks
/
langpacks
.
sh
>>
/
var
/
log
/
mahara
-
langpacks
.
log
2
>&
1
52
*
*
*
*
root
[
-
x
/
usr
/
lib
/
mahara
-
langpacks
/
update
-
pot
.
sh
]
&&
/
usr
/
lib
/
mahara
-
langpacks
/
update
-
pot
.
sh
>>
/
var
/
log
/
mahara
-
langpacks
.
log
2
>&
1
#
22
*
*
*
*
maharabot
[
-
x
/
usr
/
lib
/
mahara
-
langpacks
/
langpacks
.
sh
]
&&
/
usr
/
lib
/
mahara
-
langpacks
/
langpacks
.
sh
>>
/
var
/
log
/
mahara
-
langpacks
/
langpacks
.
log
2
>&
1
#
52
*
*
*
*
maharabot
[
-
x
/
usr
/
lib
/
mahara
-
langpacks
/
update
-
pot
.
sh
]
&&
/
usr
/
lib
/
mahara
-
langpacks
/
update
-
pot
.
sh
>>
/
var
/
log
/
mahara
-
langpacks
/
update
-
pot
.
log
2
>&
1
debian/custom-site-mahara-langpacks.postinst
View file @
08977983
...
...
@@ -19,16 +19,39 @@ set -e
case
"
$1
"
in
configure
)
adduser
--system
--quiet
maharabot
if
[
!
-d
/home/maharabot/.ssh
]
;
then
mkdir
/home/maharabot/.ssh
ssh-keygen
-q
-t
rsa
-N
''
-f
/home/maharabot/.ssh/id_rsa
chown
-R
maharabot /home/maharabot/.ssh
fi
if
[
!
-d
/var/www/mahara-langpacks
]
;
then
mkdir
/var/www/mahara-langpacks
fi
if
[
`
stat
-c
%U /var/www/mahara-langpacks
`
!=
'maharabot'
]
;
then
chown
-R
maharabot /var/www/mahara-langpacks
fi
if
[
!
-d
/var/lib/mahara-langpacks
]
;
then
mkdir
/var/lib/mahara-langpacks
fi
if
[
`
stat
-c
%U /var/lib/mahara-langpacks
`
!=
'maharabot'
]
;
then
chown
-R
maharabot /var/lib/mahara-langpacks
fi
if
[
!
-d
/var/log/apache2/mahara-langpacks
]
;
then
mkdir
/var/log/apache2/mahara-langpacks
fi
if
[
!
-d
/var/log/mahara-langpacks
]
;
then
mkdir
/var/log/mahara-langpacks
chown
maharabot /var/log/mahara-langpacks
fi
echo
"DATA=/var/lib/mahara-langpacks"
>
/etc/mahara-langpacks.conf
echo
"SCRIPTS=/usr/lib/mahara-langpacks"
>>
/etc/mahara-langpacks.conf
echo
"DOCROOT=/var/www/mahara-langpacks"
>>
/etc/mahara-langpacks.conf
...
...
debian/custom-site-mahara-langpacks.postrm
View file @
08977983
...
...
@@ -22,6 +22,7 @@ case "$1" in
rm
-rf
/var/lib/mahara-langpacks
rm
-rf
/var/www/mahara-langpacks
rm
-rf
/var/log/apache2/mahara-langpacks
rm
-rf
/var/log/mahara-langpacks
rm
-f
/etc/apache2/sites-available/mahara-langpacks.conf
;;
...
...
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