Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
domainepublic
alternc
Commits
a945fef2
Commit
a945fef2
authored
Jun 13, 2013
by
Alan Garcia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1500
parent
d3bed64e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
.gitattributes
.gitattributes
+1
-0
install/upgrades/3.0.3~b.sh
install/upgrades/3.0.3~b.sh
+33
-0
No files found.
.gitattributes
View file @
a945fef2
...
...
@@ -548,6 +548,7 @@ install/upgrades/3.0.0~3.php -text
install/upgrades/3.0.0~4.sh -text
install/upgrades/3.0.1.php -text
install/upgrades/3.0.3~a.sql -text
install/upgrades/3.0.3~b.sh -text
install/upgrades/README -text
lang/.svnignore -text
lang/README -text
...
...
install/upgrades/3.0.3~b.sh
0 → 100755
View file @
a945fef2
#!/bin/bash
# Upgrading script to AlternC 3.0.3
CONFIG_FILE
=
"/usr/lib/alternc/functions.sh"
PATH
=
/sbin:/bin:/usr/sbin:/usr/bin
umask
022
if
[
!
-r
"
$CONFIG_FILE
"
]
;
then
echo
"Can't access
$CONFIG_FILE
."
exit
1
fi
if
[
`
id
-u
`
-ne
0
]
;
then
echo
"fixperms.sh must be launched as root"
exit
1
fi
.
"
$CONFIG_FILE
"
## This part create TMP dir if don't exist
function
create_tmp_dir
()
{
read
LOGIN
||
true
while
[
"
$LOGIN
"
]
;
do
echo
"Check tmp directory for
$LOGIN
"
REP
=
"
$(
get_html_path_by_name
$LOGIN
)
/tmp/"
[[
"
$REP
"
!=
"/tmp/"
]]
&&
(
test
-d
"
$REP
"
||
mkdir
$REP
)
read
LOGIN
||
true
done
}
mysql_query
"select login from membres order by login;"
| create_tmp_dir
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