mirror of
https://github.com/friendica/docker
synced 2025-02-01 20:36:57 +01:00
Bugfixing friendica shell script
- update was not working for develop branch
This commit is contained in:
parent
d261b0cf4a
commit
f5925ac3fa
7 changed files with 28 additions and 21 deletions
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,8 @@ copy_sources() {
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_greater "$image_version" "$installed_version"; then
|
if version_greater "$image_version" "$installed_version" ||
|
||||||
|
echo "$image_version" | grep -Eq '^.*\-dev'; then
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
rsync_options="-rlDog --chown=www-data:root"
|
rsync_options="-rlDog --chown=www-data:root"
|
||||||
else
|
else
|
||||||
|
@ -148,10 +149,10 @@ copy_sources() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
log 'Copying Friendica sources ('$image_version') from '\'$SOURCEDIR'/friendica'\'' to '\'$WORKDIR\'
|
||||||
rsync $rsync_options --delete --exclude=.git --exclude=photo --exclude=proxy --exclude=.htconfig.php $SOURCEDIR/friendica/ $WORKDIR/
|
rsync $rsync_options --delete --exclude='.git' --exclude='photo' --exclude='proxy' --exclude='.htconfig.php' --exclude='home.*' --exclude='vendor' $SOURCEDIR/friendica/ $WORKDIR/
|
||||||
|
|
||||||
if [ -f $WORKDIR/view/smarty3 ]; then
|
if [ -f $WORKDIR/view/smarty3 ]; then
|
||||||
chmod 777 $WORKDIR/view/smarty3
|
chmod -R 777 $WORKDIR/view/smarty3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue