Set permissions for zeronet sites
This commit is contained in:
parent
6a0ccd1774
commit
8659a615b2
|
@ -161,6 +161,10 @@ function configure_zeronet_blog {
|
||||||
sed -i "s|ZeroNet Blog address.*|ZeroNet Blog address: $ZERONET_BLOG_ADDRESS|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Blog address.*|ZeroNet Blog address: $ZERONET_BLOG_ADDRESS|g" /home/${MY_USERNAME}/README
|
||||||
sed -i "s|ZeroNet Blog private key.*|ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Blog private key.*|ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
||||||
|
|
||||||
|
if [ -d ${MESH_INSTALL_DIR}/zeronet ]; then
|
||||||
|
chown -R zeronet:zeronet ${MESH_INSTALL_DIR}/zeronet
|
||||||
|
fi
|
||||||
|
|
||||||
echo $'Update of ZeroNet Blog completed' >> $INSTALL_LOG
|
echo $'Update of ZeroNet Blog completed' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +239,10 @@ function configure_zeronet_mail {
|
||||||
sed -i "s|ZeroNet Mail address.*|ZeroNet Mail address: $ZERONET_MAIL_ADDRESS|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Mail address.*|ZeroNet Mail address: $ZERONET_MAIL_ADDRESS|g" /home/${MY_USERNAME}/README
|
||||||
sed -i "s|ZeroNet Mail private key.*|ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Mail private key.*|ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
||||||
|
|
||||||
|
if [ -d ${MESH_INSTALL_DIR}/zeronet ]; then
|
||||||
|
chown -R zeronet:zeronet ${MESH_INSTALL_DIR}/zeronet
|
||||||
|
fi
|
||||||
|
|
||||||
echo $'Update of ZeroNet Mail completed' >> $INSTALL_LOG
|
echo $'Update of ZeroNet Mail completed' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +312,10 @@ function configure_zeronet_forum {
|
||||||
sed -i "s|ZeroNet Forum address.*|ZeroNet Forum address: $ZERONET_FORUM_ADDRESS|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Forum address.*|ZeroNet Forum address: $ZERONET_FORUM_ADDRESS|g" /home/${MY_USERNAME}/README
|
||||||
sed -i "s|ZeroNet Forum private key.*|ZeroNet Forum private key: $ZERONET_FORUM_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroNet Forum private key.*|ZeroNet Forum private key: $ZERONET_FORUM_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
||||||
|
|
||||||
|
if [ -d ${MESH_INSTALL_DIR}/zeronet ]; then
|
||||||
|
chown -R zeronet:zeronet ${MESH_INSTALL_DIR}/zeronet
|
||||||
|
fi
|
||||||
|
|
||||||
echo $'Update of ZeroNet Forum completed' >> $INSTALL_LOG
|
echo $'Update of ZeroNet Forum completed' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,6 +381,10 @@ function configure_zeronet_id {
|
||||||
sed -i "s|ZeroID address.*|ZeroID address: $ZERONET_ID_ADDRESS|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroID address.*|ZeroID address: $ZERONET_ID_ADDRESS|g" /home/${MY_USERNAME}/README
|
||||||
sed -i "s|ZeroID private key.*|ZeroID private key: $ZERONET_ID_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
sed -i "s|ZeroID private key.*|ZeroID private key: $ZERONET_ID_PRIVATE_KEY|g" /home/${MY_USERNAME}/README
|
||||||
|
|
||||||
|
if [ -d ${MESH_INSTALL_DIR}/zeronet ]; then
|
||||||
|
chown -R zeronet:zeronet ${MESH_INSTALL_DIR}/zeronet
|
||||||
|
fi
|
||||||
|
|
||||||
echo $'Update of ZeroID completed' >> $INSTALL_LOG
|
echo $'Update of ZeroID completed' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue