Copying with hidden files

This commit is contained in:
Bob Mottram 2017-06-17 18:37:06 +01:00
parent 81a78f5b92
commit 2ac43eabb2
28 changed files with 41 additions and 41 deletions

View File

@ -193,7 +193,7 @@ function install_cryptpad_main {
if [ -d /repos/cryptpad ]; then if [ -d /repos/cryptpad ]; then
mkdir $CRYPTPAD_DIR mkdir $CRYPTPAD_DIR
cp -r -p /repos/cryptpad/* $CRYPTPAD_DIR cp -r -p /repos/cryptpad/. $CRYPTPAD_DIR
cd $CRYPTPAD_DIR cd $CRYPTPAD_DIR
git pull git pull
else else

View File

@ -327,7 +327,7 @@ function install_dokuwiki {
if [ -d /repos/dokuwiki ]; then if [ -d /repos/dokuwiki ]; then
mkdir /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs mkdir /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs
cp -r -p /repos/dokuwiki/* /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs cp -r -p /repos/dokuwiki/. /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs
cd /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs cd /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -490,7 +490,7 @@ function install_etherpad {
if [ -d /repos/etherpad ]; then if [ -d /repos/etherpad ]; then
mkdir /var/www/$ETHERPAD_DOMAIN_NAME/htdocs mkdir /var/www/$ETHERPAD_DOMAIN_NAME/htdocs
cp -r -p /repos/etherpad/* /var/www/$ETHERPAD_DOMAIN_NAME/htdocs cp -r -p /repos/etherpad/. /var/www/$ETHERPAD_DOMAIN_NAME/htdocs
cd /var/www/$ETHERPAD_DOMAIN_NAME/htdocs cd /var/www/$ETHERPAD_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -348,7 +348,7 @@ function install_friendica {
if [ -d /repos/friendica ]; then if [ -d /repos/friendica ]; then
mkdir friendica mkdir friendica
cp -r -p /repos/friendica/* friendica cp -r -p /repos/friendica/. friendica
cd friendica cd friendica
git pull git pull
else else

View File

@ -554,7 +554,7 @@ function install_gnusocial_main {
if [ -d /repos/gnusocial ]; then if [ -d /repos/gnusocial ]; then
mkdir /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs mkdir /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
cp -r -p /repos/gnusocial/* /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs cp -r -p /repos/gnusocial/. /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
git pull git pull
else else
@ -821,7 +821,7 @@ function install_gnusocial_plugin_sharings {
if [ -d /repos/sharings ]; then if [ -d /repos/sharings ]; then
mkdir Sharings mkdir Sharings
cp -r -p /repos/sharings/* Sharings cp -r -p /repos/sharings/. Sharings
cd Sharings cd Sharings
git pull git pull
else else
@ -947,7 +947,7 @@ function install_gnusocial_markdown {
if [ -d /repos/gnusocial-markdown ]; then if [ -d /repos/gnusocial-markdown ]; then
mkdir Markdown mkdir Markdown
cp -r -p /repos/gnusocial-markdown/* Markdown cp -r -p /repos/gnusocial-markdown/. Markdown
cd Markdown cd Markdown
git pull git pull
else else

View File

@ -582,7 +582,7 @@ function install_htmly_from_repo {
if [ -d /repos/htmly ]; then if [ -d /repos/htmly ]; then
mkdir htdocs mkdir htdocs
cp -r -p /repos/htmly/* htdocs cp -r -p /repos/htmly/. htdocs
cd htdocs cd htdocs
git pull git pull
else else

View File

@ -340,7 +340,7 @@ function install_hubzilla {
if [ -d /repos/hubzilla ]; then if [ -d /repos/hubzilla ]; then
mkdir hubzilla mkdir hubzilla
cp -r -p /repos/hubzilla/* hubzilla cp -r -p /repos/hubzilla/. hubzilla
cd hubzilla cd hubzilla
git pull git pull
else else
@ -356,7 +356,7 @@ function install_hubzilla {
if [ -d /repos/hubzilla-addons ]; then if [ -d /repos/hubzilla-addons ]; then
mkdir $HUBZILLA_PATH/addon mkdir $HUBZILLA_PATH/addon
cp -r -p /repos/hubzilla-addons/* $HUBZILLA_PATH/addon cp -r -p /repos/hubzilla-addons/. $HUBZILLA_PATH/addon
cd $HUBZILLA_PATH/addon cd $HUBZILLA_PATH/addon
git pull git pull
else else

View File

@ -490,7 +490,7 @@ function install_koel_main {
if [ -d /repos/koel ]; then if [ -d /repos/koel ]; then
mkdir /var/www/$KOEL_DOMAIN_NAME/htdocs mkdir /var/www/$KOEL_DOMAIN_NAME/htdocs
cp -r -p /repos/koel/* /var/www/$KOEL_DOMAIN_NAME/htdocs cp -r -p /repos/koel/. /var/www/$KOEL_DOMAIN_NAME/htdocs
cd /var/www/$KOEL_DOMAIN_NAME/htdocs cd /var/www/$KOEL_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -252,7 +252,7 @@ function install_librevault {
if [ -d /repos/librevault ]; then if [ -d /repos/librevault ]; then
mkdir $INSTALL_DIR/librevault mkdir $INSTALL_DIR/librevault
cp -r -p /repos/librevault/* $INSTALL_DIR/librevault cp -r -p /repos/librevault/. $INSTALL_DIR/librevault
cd $INSTALL_DIR/librevault cd $INSTALL_DIR/librevault
git pull git pull
else else

View File

@ -372,7 +372,7 @@ function install_lychee_from_repo {
if [ -d /repos/lychee ]; then if [ -d /repos/lychee ]; then
mkdir htdocs mkdir htdocs
cp -r -p /repos/lychee/* htdocs cp -r -p /repos/lychee/. htdocs
cd htdocs cd htdocs
git pull git pull
else else

View File

@ -275,7 +275,7 @@ function install_mailpile {
if [ -d /repos/mailpile ]; then if [ -d /repos/mailpile ]; then
mkdir mail mkdir mail
cp -r -p /repos/mailpile/* mail cp -r -p /repos/mailpile/. mail
cd mail cd mail
git pull git pull
else else

View File

@ -509,7 +509,7 @@ function install_home_server {
if [ -d /repos/matrix ]; then if [ -d /repos/matrix ]; then
mkdir /etc/matrix mkdir /etc/matrix
cp -r -p /repos/matrix/* /etc/matrix cp -r -p /repos/matrix/. /etc/matrix
cd /etc/matrix cd /etc/matrix
git pull git pull
else else

View File

@ -284,7 +284,7 @@ function install_mediagoblin {
if [ -d /repos/mediagoblin ]; then if [ -d /repos/mediagoblin ]; then
mkdir -p $MEDIAGOBLIN_BASE_DIR/mediagoblin mkdir -p $MEDIAGOBLIN_BASE_DIR/mediagoblin
cp -r -p /repos/mediagoblin/* $MEDIAGOBLIN_BASE_DIR/mediagoblin cp -r -p /repos/mediagoblin/. $MEDIAGOBLIN_BASE_DIR/mediagoblin
cd $MEDIAGOBLIN_BASE_DIR/mediagoblin cd $MEDIAGOBLIN_BASE_DIR/mediagoblin
git pull git pull
chown -R mediagoblin:mediagoblin $MEDIAGOBLIN_BASE_DIR/mediagoblin chown -R mediagoblin:mediagoblin $MEDIAGOBLIN_BASE_DIR/mediagoblin

View File

@ -335,7 +335,7 @@ function install_movim {
if [ -d /repos/movim ]; then if [ -d /repos/movim ]; then
mkdir /var/www/$MOVIM_DOMAIN_NAME/htdocs mkdir /var/www/$MOVIM_DOMAIN_NAME/htdocs
cp -r -p /repos/movim/* /var/www/$MOVIM_DOMAIN_NAME/htdocs cp -r -p /repos/movim/. /var/www/$MOVIM_DOMAIN_NAME/htdocs
cd /var/www/$MOVIM_DOMAIN_NAME/htdocs cd /var/www/$MOVIM_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -419,7 +419,7 @@ function install_nextcloud_main {
if [ -d /repos/nextcloud ]; then if [ -d /repos/nextcloud ]; then
mkdir /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs mkdir /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs
cp -r -p /repos/nextcloud/* /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs cp -r -p /repos/nextcloud/. /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs
cd /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs cd /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -378,7 +378,7 @@ function install_pihole {
if [ -d /repos/pihole ]; then if [ -d /repos/pihole ]; then
mkdir pihole mkdir pihole
cp -r -p /repos/pihole/* pihole cp -r -p /repos/pihole/. pihole
cd pihole cd pihole
git pull git pull
else else

View File

@ -551,7 +551,7 @@ function install_postactiv_main {
if [ -d /repos/postactiv ]; then if [ -d /repos/postactiv ]; then
mkdir /var/www/$POSTACTIV_DOMAIN_NAME/htdocs mkdir /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
cp -r -p /repos/postactiv/* /var/www/$POSTACTIV_DOMAIN_NAME/htdocs cp -r -p /repos/postactiv/. /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
git pull git pull
else else

View File

@ -200,7 +200,7 @@ function install_profanity {
# dependency for profanity not available in debian # dependency for profanity not available in debian
if [ -d /repos/libmesode ]; then if [ -d /repos/libmesode ]; then
mkdir $INSTALL_DIR/libmesode mkdir $INSTALL_DIR/libmesode
cp -r -p /repos/libmesode/* $INSTALL_DIR/libmesode cp -r -p /repos/libmesode/. $INSTALL_DIR/libmesode
cd $INSTALL_DIR/libmesode cd $INSTALL_DIR/libmesode
git pull git pull
else else
@ -218,7 +218,7 @@ function install_profanity {
# build profanity # build profanity
if [ -d /repos/profanity ]; then if [ -d /repos/profanity ]; then
mkdir $INSTALL_DIR/profanity mkdir $INSTALL_DIR/profanity
cp -r -p /repos/profanity/* $INSTALL_DIR/profanity cp -r -p /repos/profanity/. $INSTALL_DIR/profanity
cd $INSTALL_DIR/profanity cd $INSTALL_DIR/profanity
git pull git pull
else else
@ -242,7 +242,7 @@ function install_profanity {
if [ -d /repos/profanity-omemo ]; then if [ -d /repos/profanity-omemo ]; then
mkdir $INSTALL_DIR/profanity-omemo-plugin mkdir $INSTALL_DIR/profanity-omemo-plugin
cp -r -p /repos/profanity-omemo/* $INSTALL_DIR/profanity-omemo-plugin cp -r -p /repos/profanity-omemo/. $INSTALL_DIR/profanity-omemo-plugin
cd $INSTALL_DIR/profanity-omemo-plugin cd $INSTALL_DIR/profanity-omemo-plugin
git pull git pull
else else

View File

@ -324,7 +324,7 @@ function install_rss_main {
if [ -d /repos/rss ]; then if [ -d /repos/rss ]; then
mkdir tt-rss mkdir tt-rss
cp -r -p /repos/rss/* tt-rss cp -r -p /repos/rss/. tt-rss
cd tt-rss cd tt-rss
git pull git pull
else else
@ -608,7 +608,7 @@ function install_rss_mobile_reader {
if [ -d /repos/rss-mobile ]; then if [ -d /repos/rss-mobile ]; then
mkdir ttrss-mobile mkdir ttrss-mobile
cp -r -p /repos/rss-mobile/* ttrss-mobile cp -r -p /repos/rss-mobile/. ttrss-mobile
cd ttrss-mobile cd ttrss-mobile
git pull git pull
else else

View File

@ -881,7 +881,7 @@ function install_searx {
if [ -d /repos/searx ]; then if [ -d /repos/searx ]; then
mkdir searx mkdir searx
cp -r -p /repos/searx/* searx cp -r -p /repos/searx/. searx
cd searx cd searx
git pull git pull
else else

View File

@ -129,7 +129,7 @@ function mesh_tox_qtox {
if [ -d /repos/qtox ]; then if [ -d /repos/qtox ]; then
mkdir ${rootdir}$INSTALL_DIR/qtox mkdir ${rootdir}$INSTALL_DIR/qtox
cp -r -p /repos/qtox/* ${rootdir}$INSTALL_DIR/qtox cp -r -p /repos/qtox/. ${rootdir}$INSTALL_DIR/qtox
cd ${rootdir}$INSTALL_DIR/qtox cd ${rootdir}$INSTALL_DIR/qtox
git pull git pull
else else
@ -334,7 +334,7 @@ function tox_avahi {
if [ -d /repos/toxid ]; then if [ -d /repos/toxid ]; then
mkdir $INSTALL_DIR/toxid mkdir $INSTALL_DIR/toxid
cp -r -p /repos/toxid/* $INSTALL_DIR/toxid cp -r -p /repos/toxid/. $INSTALL_DIR/toxid
cd $INSTALL_DIR/toxid cd $INSTALL_DIR/toxid
git pull git pull
else else
@ -476,7 +476,7 @@ function mesh_tox_node {
if [ ! -d ${rootdir}${INSTALL_DIR}/toxcore ]; then if [ ! -d ${rootdir}${INSTALL_DIR}/toxcore ]; then
if [ -d /repos/toxcore ]; then if [ -d /repos/toxcore ]; then
mkdir ${rootdir}${INSTALL_DIR}/toxcore mkdir ${rootdir}${INSTALL_DIR}/toxcore
cp -r -p /repos/toxcore/* ${rootdir}${INSTALL_DIR}/toxcore cp -r -p /repos/toxcore/. ${rootdir}${INSTALL_DIR}/toxcore
cd ${rootdir}${INSTALL_DIR}/toxcore cd ${rootdir}${INSTALL_DIR}/toxcore
git pull git pull
else else
@ -606,7 +606,7 @@ function mesh_tox_avahi {
if [ -d /repos/toxid ]; then if [ -d /repos/toxid ]; then
mkdir ${rootdir}${INSTALL_DIR}/toxid mkdir ${rootdir}${INSTALL_DIR}/toxid
cp -r -p /repos/toxid/* ${rootdir}${INSTALL_DIR}/toxid cp -r -p /repos/toxid/. ${rootdir}${INSTALL_DIR}/toxid
cd ${rootdir}${INSTALL_DIR}/toxid cd ${rootdir}${INSTALL_DIR}/toxid
git pull git pull
else else
@ -681,7 +681,7 @@ function mesh_tox_client {
echo "mkdir -p $INSTALL_DIR" >> $TEMP_SCRIPT echo "mkdir -p $INSTALL_DIR" >> $TEMP_SCRIPT
echo 'if [ -d /repos/toxic ]; then' >> $TEMP_SCRIPT echo 'if [ -d /repos/toxic ]; then' >> $TEMP_SCRIPT
echo " mkdir $INSTALL_DIR/toxic" >> $TEMP_SCRIPT echo " mkdir $INSTALL_DIR/toxic" >> $TEMP_SCRIPT
echo " cp -r -p /repos/toxic/* $INSTALL_DIR/toxic" >> $TEMP_SCRIPT echo " cp -r -p /repos/toxic/. $INSTALL_DIR/toxic" >> $TEMP_SCRIPT
echo " cd $INSTALL_DIR/toxic" >> $TEMP_SCRIPT echo " cd $INSTALL_DIR/toxic" >> $TEMP_SCRIPT
echo ' git pull' >> $TEMP_SCRIPT echo ' git pull' >> $TEMP_SCRIPT
echo 'else' >> $TEMP_SCRIPT echo 'else' >> $TEMP_SCRIPT

View File

@ -599,7 +599,7 @@ __ENDCONFIG__
if [ -d /repos/turtl ]; then if [ -d /repos/turtl ]; then
mkdir $TURTL_BASE_DIR/api mkdir $TURTL_BASE_DIR/api
cp -r -p /repos/turtl/* $TURTL_BASE_DIR/api cp -r -p /repos/turtl/. $TURTL_BASE_DIR/api
cd $TURTL_BASE_DIR/api cd $TURTL_BASE_DIR/api
git pull git pull
else else

View File

@ -435,7 +435,7 @@ function mesh_zeronet {
if [ -d /repos/zeronet ]; then if [ -d /repos/zeronet ]; then
mkdir $rootdir$MESH_INSTALL_DIR/zeronet mkdir $rootdir$MESH_INSTALL_DIR/zeronet
cp -r -p /repos/zeronet/* $rootdir$MESH_INSTALL_DIR/zeronet cp -r -p /repos/zeronet/. $rootdir$MESH_INSTALL_DIR/zeronet
cd $rootdir$MESH_INSTALL_DIR/zeronet cd $rootdir$MESH_INSTALL_DIR/zeronet
git pull git pull
else else

View File

@ -997,7 +997,7 @@ function image_install_inadyn {
if [ -d /repos/inadyn ]; then if [ -d /repos/inadyn ]; then
mkdir $rootdir/root/build/inadyn mkdir $rootdir/root/build/inadyn
cp -r -p /repos/inadyn/* $rootdir/root/build/inadyn cp -r -p /repos/inadyn/. $rootdir/root/build/inadyn
cd $rootdir/root/build/inadyn cd $rootdir/root/build/inadyn
git pull git pull
else else

View File

@ -40,7 +40,7 @@ function mesh_install_cmake {
if [ -d /repos/cmake ]; then if [ -d /repos/cmake ]; then
mkdir $rootdir$INSTALL_DIR/cmake mkdir $rootdir$INSTALL_DIR/cmake
cp -r -p /repos/cmake/* $rootdir$INSTALL_DIR/cmake cp -r -p /repos/cmake/. $rootdir$INSTALL_DIR/cmake
cd $rootdir$INSTALL_DIR/cmake cd $rootdir$INSTALL_DIR/cmake
git pull git pull
else else
@ -95,7 +95,7 @@ function install_cmake {
if [ -d /repos/cmake ]; then if [ -d /repos/cmake ]; then
mkdir $INSTALL_DIR/cmake mkdir $INSTALL_DIR/cmake
cp -r -p /repos/cmake/* $INSTALL_DIR/cmake cp -r -p /repos/cmake/. $INSTALL_DIR/cmake
cd $INSTALL_DIR/cmake cd $INSTALL_DIR/cmake
git pull git pull
else else

View File

@ -40,7 +40,7 @@ function mesh_install_tomb {
if [ -d /repos/tomb ]; then if [ -d /repos/tomb ]; then
mkdir ${rootdir}/$INSTALL_DIR/tomb mkdir ${rootdir}/$INSTALL_DIR/tomb
cp -r -p /repos/tomb/* ${rootdir}/$INSTALL_DIR/tomb cp -r -p /repos/tomb/. ${rootdir}/$INSTALL_DIR/tomb
cd ${rootdir}/$INSTALL_DIR/tomb cd ${rootdir}/$INSTALL_DIR/tomb
git pull git pull
else else
@ -83,7 +83,7 @@ function install_tomb {
if [ -d /repos/tomb ]; then if [ -d /repos/tomb ]; then
mkdir $INSTALL_DIR/tomb mkdir $INSTALL_DIR/tomb
cp -r -p /repos/tomb/* $INSTALL_DIR/tomb cp -r -p /repos/tomb/. $INSTALL_DIR/tomb
cd $INSTALL_DIR/tomb cd $INSTALL_DIR/tomb
git pull git pull
else else

View File

@ -214,7 +214,7 @@ function install_qvitter {
if [ -d /repos/qvitter ]; then if [ -d /repos/qvitter ]; then
mkdir Qvitter mkdir Qvitter
cp -r -p /repos/qvitter/* Qvitter cp -r -p /repos/qvitter/. Qvitter
cd Qvitter cd Qvitter
git pull git pull
else else
@ -344,7 +344,7 @@ function install_pleroma_front_end {
if [ -d /repos/pleroma ]; then if [ -d /repos/pleroma ]; then
mkdir -p $INSTALL_DIR/pleroma mkdir -p $INSTALL_DIR/pleroma
cp -r -p /repos/pleroma/* $INSTALL_DIR/pleroma cp -r -p /repos/pleroma/. $INSTALL_DIR/pleroma
cd $INSTALL_DIR/pleroma cd $INSTALL_DIR/pleroma
git pull git pull
else else

View File

@ -443,7 +443,7 @@ function install_dynamicdns {
if [ ! -d $INSTALL_DIR/inadyn ]; then if [ ! -d $INSTALL_DIR/inadyn ]; then
if [ -d /repos/inadyn ]; then if [ -d /repos/inadyn ]; then
mkdir $INSTALL_DIR/inadyn mkdir $INSTALL_DIR/inadyn
cp -r -p /repos/inadyn/* $INSTALL_DIR/inadyn cp -r -p /repos/inadyn/. $INSTALL_DIR/inadyn
cd $INSTALL_DIR/inadyn cd $INSTALL_DIR/inadyn
git pull git pull
else else