Fixes for magiedit
This commit is contained in:
parent
d485c47da2
commit
b5e73b4544
9
init
9
init
@ -17,10 +17,16 @@ if [ ! -d "${MAGICKA_ROOT}/data/etc" ]; then
|
|||||||
sed -i 's#magicka#opt/magicka/data#g' ${MAGICKA_ROOT}/data/etc/magicka/filesgen.ini
|
sed -i 's#magicka#opt/magicka/data#g' ${MAGICKA_ROOT}/data/etc/magicka/filesgen.ini
|
||||||
sed -i 's#var/magicka/msgs#data/msgs#g' ${MAGICKA_ROOT}/data/etc/magicka/localmail.ini
|
sed -i 's#var/magicka/msgs#data/msgs#g' ${MAGICKA_ROOT}/data/etc/magicka/localmail.ini
|
||||||
mkdir ${MAGICKA_ROOT}/data/{msgs,ftn}
|
mkdir ${MAGICKA_ROOT}/data/{msgs,ftn}
|
||||||
mkdir ${MAGICKA_ROOT}/data/ftn/{in_sec,in,in_temp}
|
mkdir ${MAGICKA_ROOT}/data/ftn/{cm_temp,cm_packets,in_sec,in,in_temp}
|
||||||
rmdir ${MAGICKA_ROOT}/data/var/magicka/msgs
|
rmdir ${MAGICKA_ROOT}/data/var/magicka/msgs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix for magiedit
|
||||||
|
mkdir ${MAGICKA_ROOT}/data/share/magicka/ansis/drafts
|
||||||
|
ln -sf ${MAGICKA_ROOT}/data/share/magicka/ansis/drafts ${MAGICKA_ROOT}/share/magicka/ansis/drafts
|
||||||
|
ln -sf ${MAGICKA_ROOT}/data/share/magicka/ansis/magiedit.ans ${MAGICKA_ROOT}/share/magicka/ansis/magiedit.ans
|
||||||
|
ln -sf ${MAGICKA_ROOT}/data/share/magicka/ansis/magiquote.ans ${MAGICKA_ROOT}/share/magicka/ansis/magiquote.ans
|
||||||
|
|
||||||
for keytype in rsa dsa; do
|
for keytype in rsa dsa; do
|
||||||
if [ ! -f "${MAGICKA_ROOT}/data/etc/magicka/keys/ssh_host_${keytype}_key" ]; then
|
if [ ! -f "${MAGICKA_ROOT}/data/etc/magicka/keys/ssh_host_${keytype}_key" ]; then
|
||||||
echo "* Generating ${keytype} ssh key"
|
echo "* Generating ${keytype} ssh key"
|
||||||
@ -31,4 +37,5 @@ done
|
|||||||
|
|
||||||
# clear out state and lockfiles from previous instance
|
# clear out state and lockfiles from previous instance
|
||||||
|
|
||||||
|
echo "* Ready..."
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Reference in New Issue
Block a user